@akylas/nativescript-sqlite
TypeScript icon, indicating that this package has built-in type declarations

3.3.12 • Public • Published

Nativescript: Akylas Sqlite

Build Status npm version

Installation

tns plugin add nativescript-akylas-sqlite

Usage

You should take care of wrapping sqlite calls to your preferred async option (promises, observables, async/await). And catch any exceptions thrown.

import { openOrCreate, deleteDatabase } from "nativescript-akylas-sqlite";

const sqlite = openOrCreate("path/to/db");
sqlite.execute("CREATE TABLE names (id INT, name TEXT)");
sqlite.transaction(cancelTransaction => {
    // Calling cancelTransaction will rollback all changes made to db
    names.forEach((name, id) =>
        sqlite.execute(
            "INSERT INTO names (id, name) VALUES (?, ?)",
            [id, name]
        )
    );
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.3.122latest

Version History

VersionDownloads (Last 7 Days)Published
3.3.122
3.3.111
3.3.100
3.3.90
3.3.80
3.3.70
3.3.60
3.3.50
3.3.20
3.3.10
3.3.00
3.2.00
3.1.10
3.1.00

Package Sidebar

Install

npm i @akylas/nativescript-sqlite

Weekly Downloads

3

Version

3.3.12

License

Apache-2.0

Unpacked Size

653 kB

Total Files

269

Last publish

Collaborators

  • farfromrefuge