Table of Contents

Class MDSQLiteAdapter

Namespace
PowerSync.Common.MDSQLite
Assembly
PowerSync.Common.dll
public class MDSQLiteAdapter : IDBAdapter, ILockContext, IDBGetUtils, ICloseableAsync
Inheritance
MDSQLiteAdapter
Implements
Derived
Inherited Members

Constructors

MDSQLiteAdapter(MDSQLiteAdapterOptions)

Fields

options
resolvedOptions

Properties

Events

The event manager for the adapter.

Name

The name of the adapter.

Methods

Close()

Closes the adapter.

Execute(string, object?[]?)
ExecuteBatch(string, object?[][]?)
Get(string, object?[]?)
GetAll(string, object?[]?)
GetAll<T>(string, object?[]?)
GetOptional(string, object?[]?)
GetOptional<T>(string, object?[]?)
Get<T>(string, object?[]?)
InternalTransaction(MDSQLiteTransaction, Func<ITransaction, Task>)
InternalTransaction<T>(MDSQLiteTransaction, Func<ITransaction, Task<T>>)
LoadDefaultPowerSyncExtension(SqliteConnection)

Loads the bundled PowerSync core SQLite extension. Override on platform-specific adapters (e.g. MAUI iOS/Android) where the native library lives outside the desktop runtime path.

LoadExtensions(SqliteConnection)
OpenConnection(string)
ReadLock<T>(Func<ILockContext, Task<T>>, DBLockOptions?)

Executes a read lock with the given function.

ReadTransaction<T>(Func<ITransaction, Task<T>>, DBLockOptions?)

Executes a read transaction with the given function.

RefreshSchema()

This method refreshes the schema information across all connections. This is for advanced use cases, and should generally not be needed.

WriteLock(Func<ILockContext, Task>, DBLockOptions?)

Executes a write lock with the given function.

WriteLock<T>(Func<ILockContext, Task<T>>, DBLockOptions?)

Executes a write lock with the given function.

WriteTransaction(Func<ITransaction, Task>, DBLockOptions?)

Executes a write transaction with the given function.

WriteTransaction<T>(Func<ITransaction, Task<T>>, DBLockOptions?)

Executes a write transaction with the given function.