UNPKG

@powersync/react-native

Version:

PowerSync React Native SDK. Sync Postgres, MongoDB or MySQL with SQLite in your React Native app

12 lines (11 loc) 528 B
import { AbstractStreamingSyncImplementation, AbstractStreamingSyncImplementationOptions, LockOptions, LockType } from '@powersync/common'; import Lock from 'async-lock'; export declare class ReactNativeStreamingSyncImplementation extends AbstractStreamingSyncImplementation { locks: Map<LockType, Lock>; constructor(options: AbstractStreamingSyncImplementationOptions); /** * Configures global locks on sync process */ initLocks(): void; obtainLock<T>(lockOptions: LockOptions<T>): Promise<T>; }