Table of Contents

Class SqliteConnectionExtensions

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

Small, visible-SQL helpers. Not an ORM: EF Core, sqlite-net-pcl and Dapper remain the recommended object-mapping layers and all work unchanged on top of this provider.

public static class SqliteConnectionExtensions
Inheritance
SqliteConnectionExtensions
Inherited Members

Methods

ExecuteAsync(SqliteConnection, string, IEnumerable<SqliteParameter>?, CancellationToken)

Runs sql as a non-query and returns the affected row count.

QueryAsync<T>(SqliteConnection, string, Func<SqliteDataReader, T>, IEnumerable<SqliteParameter>?, CancellationToken)

Runs sql and projects every row through map.

ScalarAsync<T>(SqliteConnection, string, IEnumerable<SqliteParameter>?, CancellationToken)

Runs sql and returns the first column of the first row, converted to T.

ToParameters(object)

Binds each public instance property of parameters as $Name. ReadOnlyMemory<float>, Memory<float> and float[] bind as a sqlite-vec float32 blob.