Table of Contents

Interface IEdgeDatabase

Namespace
Qavren.Edge.Sqlite
Assembly
Qavren.Edge.Sqlite.dll

One physical database, resolved from DI either unkeyed or by name.

public interface IEdgeDatabase

Properties

IsEncrypted

True when a key or key provider is configured.

Name

The registration name; (default) for the unnamed database.

Path

The absolute file path, or :memory:.

Methods

CheckAsync(CancellationToken)

PRAGMA quick_check plus SELECT vec_version().

CheckpointAsync(CancellationToken)

PRAGMA wal_checkpoint(TRUNCATE). Best effort: failures are logged, not thrown.

ExecuteInTransactionAsync<T>(Func<SqliteConnection, SqliteTransaction, CancellationToken, Task<T>>, CancellationToken)

Runs work inside one transaction and commits it.

GetInfoAsync(CancellationToken)

Versions, page size, journal mode, user_version, file size and encryption state.

OpenConnectionAsync(CancellationToken)

Awaits startup, opens, applies the key and the per-open pragmas. The caller disposes.

RekeyAsync(SqliteKey, CancellationToken)

Cipher builds only; throws EdgeConfigurationException otherwise.