UNPKG

cordova-plugin-nano-sqlite

Version:

NanoSQL SQLite Plugin: exposes a well documented, easy to use API for SQLite. Uses IndexedDB/WebSQL when testing in the browser, then uses SQLite on the device with the exact same API. Includes typescript support, an ORM and undo/redo built in.

14 lines (13 loc) 388 B
import { NanoSQLInstance } from "nano-sql"; import { Promise } from "lie-ts"; declare global { interface Window { nSQL: (table?: string) => NanoSQLInstance; } } export declare class initNanoSQL { private _noGlobal; private _nsql; constructor(setup: (nSQL: (table?: string) => NanoSQLInstance) => void, doNotSetGlobal?: boolean); connect(): Promise<any>; }