private void Dispose(bool disposing) { if (_disposed) { return; } Sqlite.Result r = Sqlite.Finalize(_statement); if (!disposing) { return; } GC.SuppressFinalize(this); _disposed = true; r.ThrowIfNotOK(nameof(Sqlite.Finalize)); }
internal void BindNull(int index) { Sqlite.BindNull(_statement, index) .ThrowIfNotOK(nameof(Sqlite.BindNull)); }
internal void BindFloat(int index, double value) { Sqlite.BindDouble(_statement, index, value) .ThrowIfNotOK(nameof(Sqlite.BindDouble)); }
internal void BindInteger(int index, long value) { Sqlite.BindInt64(_statement, index, value) .ThrowIfNotOK(nameof(Sqlite.BindInt64)); }
internal Statement(IntPtr statement) { _statement = statement; ColumnCount = Sqlite.ColumnCount(statement); ParameterCount = Sqlite.BindParameterCount(statement); }
public double AsFloat() => Sqlite.ColumnDouble(_statement, Index);
public long AsInteger() => Sqlite.ColumnInt64(_statement, Index);
public Column(IntPtr statement, int index) { _statement = statement; Index = index; DataType = Sqlite.ColumnType(statement, index); }