Table of Contents

Interface IDBAdapter

Namespace
PowerSync.Common.DB
Assembly
PowerSync.Common.dll
public interface IDBAdapter : ILockContext, IDBGetUtils, ICloseableAsync
Inherited Members

Properties

Events

The event manager for the adapter.

Name

The name of the adapter.

Methods

Close()

Closes the adapter.

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.