powersync library

PowerSync Dart SDK.

Use PowerSyncDatabase to open a database.

Classes

Column
A single column in a table schema.
CrudBatch
A batch of client-side changes.
CrudEntry
A single client-side change.
CrudTransaction
DevConnector
Connects to the PowerSync service in development mode.
DevCredentials
Credentials used to connect to the PowerSync dev API.
Index
IndexedColumn
Describes an indexed column.
PowerSyncBackendConnector
Implement this to connect an app backend.
PowerSyncCredentials
Temporary credentials to connect to the PowerSync service.
PowerSyncDatabase
A PowerSync managed database.
PowerSyncOpenFactory
Schema
The schema used by the database.
SqliteConnectionSetup
Advanced: Define custom setup for each SQLite connection.
SyncStatus
Table
A single table in the schema.
UploadQueueStats
Stats of the local upload queue.

Enums

ColumnType
Type of column.
UpdateType
Type of local change.

Properties

attachedLogger → Logger
Standard logger. Does not automatically log to the console, use the Logger.root.onRecord stream to get log messages.
final
autoLogger → Logger
Logger that outputs to the console in debug mode, and nothing in release and profile modes.
final
debugLogger → Logger
Logger that always outputs debug info to the console.
final
uuid → Uuid
final

Exceptions / Errors

CredentialsException
This indicates an error with configured credentials.
PowerSyncProtocolException
An internal protocol exception.
SyncResponseException
An error that received from the sync service.