PocketSyncDatabase
In our Flutter SDK, PocketSyncDatabase is a wrapper around sqflite database. Our Typescript SDK (planned) will use sql.js.Usage
PocketSyncDatabase is initialized with PocketSync instance. You can access it viaPocketSync.instance.database.
CRUD Operations
PocketSyncDatabase provides simple methods for performing CRUD (Create, Read, Update, Delete) operations on your data.
Create
Read
Update
Delete
Transactions
Batch operations
Raw SQL
Watch changes
Supported datatypes
PocketSyncDatabase does not support the following datatypes:DateTimeis not a supported SQLite type. UseINTEGERandmillisSinceEpochvalues.boolis not a supported SQLite type. UseINTEGERand0and1values.