Table of Contents

Class MDSQLiteOptions

Namespace
PowerSync.Common.MDSQLite
Assembly
PowerSync.Common.dll
public class MDSQLiteOptions
Inheritance
MDSQLiteOptions
Derived
Inherited Members

Properties

CacheSizeKb

Maximum SQLite cache size. Defaults to 50MB.

EncryptionKey

Encryption key for the database. If set, the database will be encrypted using SQLCipher.

Extensions

Additional SQLite extensions to load on every connection, in order. Defaults to an empty list. The bundled PowerSync core extension is loaded separately and controlled by LoadPowerSyncExtension — do not include it here.

JournalMode

SQLite journal mode. Defaults to WAL.

JournalSizeLimit

Journal/WAL size limit. Defaults to 6MB.

LoadPowerSyncExtension

Whether to load the bundled PowerSync core SQLite extension on every connection. Defaults to true and should remain true for normal use — the rest of the library relies on the SQL functions and virtual tables it registers (e.g. powersync_init()). Set to false only if you are supplying an equivalent PowerSync-compatible extension via Extensions.

LockTimeoutMs

Timeout in milliseconds waiting for locks to be released by other connections. Defaults to 30 seconds.

ReadPoolSize

The number of MDSQLiteConnection objects to create for the read pool.

Synchronous

SQLite synchronous flag. Defaults to NORMAL, which is safe for WAL mode.

TemporaryStorage

Where to store SQLite temporary files. Defaults to MEMORY.