UNPKG

@react-native-replicache/react-native-op-sqlite

Version:

> Plug-in React Native compatibility bindings for [Replicache](https://replicache.dev/).

22 lines 939 B
import * as OPSQLite from "@op-engineering/op-sqlite"; import { ReplicacheGenericSQLiteTransaction } from "@react-native-replicache/replicache-generic-sqlite"; export declare class ReplicacheOPSQLiteTransaction extends ReplicacheGenericSQLiteTransaction { private readonly db; private _tx; private _transactionCommittedSubscriptions; private _txCommitted; private _transactionEndedSubscriptions; private _txEnded; constructor(db: OPSQLite.OPSQLiteConnection); start(): Promise<void>; execute(sqlStatement: string, args?: (string | number | null)[] | undefined): Promise<{ item: (idx: number) => any; length: number; }>; commit(): Promise<void>; waitForTransactionEnded(): Promise<void> | undefined; private assertTransactionReady; private _waitForTransactionCommitted; private _setTransactionEnded; } //# sourceMappingURL=replicache-op-sqlite-transaction.d.ts.map