Beispiel #1
0
 public static Result sqlite3_bind_blob(
     SafeSqliteStatementHandle stmt,
     int index,
     ReadOnlySpan <byte> bytes
     )
 {
     using var _ = stmt.Lease();
     return((Result)raw.sqlite3_bind_blob(stmt.DangerousGetWrapper(), index, bytes));
 }
Beispiel #2
0
 public static Result sqlite3_bind_text(
     SafeSqliteStatementHandle stmt,
     int index,
     string val
     )
 {
     using var _ = stmt.Lease();
     return((Result)raw.sqlite3_bind_text(stmt.DangerousGetWrapper(), index, val));
 }
Beispiel #3
0
 public static int sqlite3_clear_bindings(SafeSqliteStatementHandle stmt)
 {
     using var _ = stmt.Lease();
     return(raw.sqlite3_clear_bindings(stmt.DangerousGetWrapper()));
 }
Beispiel #4
0
 public static string sqlite3_column_text(SafeSqliteStatementHandle stmt, int index)
 {
     using var _ = stmt.Lease();
     return(raw.sqlite3_column_text(stmt.DangerousGetWrapper(), index).utf8_to_string());
 }
Beispiel #5
0
 public static long sqlite3_column_int64(SafeSqliteStatementHandle stmt, int index)
 {
     using var _ = stmt.Lease();
     return(raw.sqlite3_column_int64(stmt.DangerousGetWrapper(), index));
 }
Beispiel #6
0
 public static Result sqlite3_step(SafeSqliteStatementHandle stmt)
 {
     using var _ = stmt.Lease();
     return((Result)raw.sqlite3_step(stmt.DangerousGetWrapper()));
 }