# cross-sqlcipher-promise

> Promise wrapper around cross-sqlcipher

Latest version **1.0.1** (published 2018-05-12) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install cross-sqlcipher-promise
pnpm add cross-sqlcipher-promise
yarn add cross-sqlcipher-promise
bun add cross-sqlcipher-promise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-12 |
| First published | 2018-05-12 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Schmidt |
| Maintainers | michael1 |

## Links

- npm: https://www.npmjs.com/package/cross-sqlcipher-promise
- Repository: https://github.com/michael-ts/cross-sqlcipher-promise
- Homepage: https://github.com/michael-ts/cross-sqlcipher-promise#readme
- Issues: https://github.com/michael-ts/cross-sqlcipher-promise/issues
- npm.io page: https://npm.io/package/cross-sqlcipher-promise

## Dependencies (1)

- [cross-sqlcipher](https://npm.io/package/cross-sqlcipher.md) 0.0.2

## Recent versions

- 1.0.1 (latest) — 2018-05-12
- 1.0.2 (beta) — 2019-09-14
- 1.0.0 — 2018-05-12

## README

Promise wrapper around cross-sqlcipher
======================================

Wraps cross-sqlcipher with promises.

# Install

npm install cross-sqlcipher-promise

# Usage Example

```js
var sqlite3 = require("cross-sqlcipher-promise")
var db = new sqlite3.Database("test.db")

db.serialize()
db.run("PRAGMA KEY = 'secret'").then( ()=> {
    return db.get("SELECT author FROM books WHERE rowid<10")
}).then(row => {
    console.log(row.name)
})

db.prepare("INSERT INTO books VALUES(author,title)",["Me","How to Code"])
  .then(stmt=>stmt.run())
  .then(stmt=>{
    var rowid_Integer = stmt.lastID
    stmt.finalize()
    return rowid_Integer
  })

db.close();
```

---
_Source: https://npm.io/package/cross-sqlcipher-promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
