react-native-nitro-sqlite
Version:
Fast SQLite library for React Native built using Nitro Modules
26 lines (25 loc) • 921 B
JavaScript
;
import { transaction } from "./operations/transaction.js";
import { HybridNitroSQLite } from "./nitro.js";
import { open } from "./operations/session.js";
import { execute, executeAsync } from "./operations/execute.js";
import { init } from './OnLoad';
import { executeBatch, executeBatchAsync } from "./operations/executeBatch.js";
init();
export const NitroSQLite = {
...HybridNitroSQLite,
native: HybridNitroSQLite,
// Overwrite native `open` function with session-based JS abstraction,
// where the database name can be ommited once opened
open,
// More JS abstractions, that perform type casting and validation.
transaction,
execute,
executeAsync,
executeBatch,
executeBatchAsync
};
export { open } from "./operations/session.js";
export { default as NitroSQLiteError } from "./NitroSQLiteError.js";
export { typeORMDriver } from "./typeORM.js";
//# sourceMappingURL=index.js.map