Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 internal void BindNull(int index)
 {
     Sqlite.BindNull(_statement, index)
     .ThrowIfNotOK(nameof(Sqlite.BindNull));
 }
Exemplo n.º 3
0
 internal void BindFloat(int index, double value)
 {
     Sqlite.BindDouble(_statement, index, value)
     .ThrowIfNotOK(nameof(Sqlite.BindDouble));
 }
Exemplo n.º 4
0
 internal void BindInteger(int index, long value)
 {
     Sqlite.BindInt64(_statement, index, value)
     .ThrowIfNotOK(nameof(Sqlite.BindInt64));
 }
Exemplo n.º 5
0
 internal Statement(IntPtr statement)
 {
     _statement     = statement;
     ColumnCount    = Sqlite.ColumnCount(statement);
     ParameterCount = Sqlite.BindParameterCount(statement);
 }
Exemplo n.º 6
0
 public double AsFloat() => Sqlite.ColumnDouble(_statement, Index);
Exemplo n.º 7
0
 public long AsInteger() => Sqlite.ColumnInt64(_statement, Index);
Exemplo n.º 8
0
 public Column(IntPtr statement, int index)
 {
     _statement = statement;
     Index      = index;
     DataType   = Sqlite.ColumnType(statement, index);
 }