SQLite3

Description

sealed class Tinman.AddOns.SQLite.SQLite3

Derived from

NativeLibrary abstract

Full source code is included in the Tinman 3D SDK download.

A partial wrapper around the C-language Interface Specification for SQLite.
https://sqlite.org/c3ref/intro.html

The extension methods prefixed with Api* are convenience helpers that delegate to the plain SQLite functions while doing error handling. The DatasetFile, PreparedStatement and StatementCollection classes provide a simple high-level API on top of the plain SQLite functions.

Public / Constants

ABORT


public constant ABORT → (4:int32)

ABORT_​ROLLBACK


public constant ABORT_ROLLBACK → (516:int32)

AUTH


public constant AUTH → (23:int32)

AUTH_​USER


public constant AUTH_USER → (279:int32)

BLOB


public constant BLOB → (4:int32)

BUSY


public constant BUSY → (5:int32)

BUSY_​RECOVERY


public constant BUSY_RECOVERY → (261:int32)

BUSY_​SNAPSHOT


public constant BUSY_SNAPSHOT → (517:int32)

BUSY_​TIMEOUT


public constant BUSY_TIMEOUT → (773:int32)

CANTOPEN


public constant CANTOPEN → (14:int32)

CANTOPEN_​CONVPATH


public constant CANTOPEN_CONVPATH → (1038:int32)

CANTOPEN_​DIRTYWAL


public constant CANTOPEN_DIRTYWAL → (1294:int32)

CANTOPEN_​FULLPATH


public constant CANTOPEN_FULLPATH → (782:int32)

CANTOPEN_​ISDIR


public constant CANTOPEN_ISDIR → (526:int32)

CANTOPEN_​NOTEMPDIR


public constant CANTOPEN_NOTEMPDIR → (270:int32)


public constant CANTOPEN_SYMLINK → (1550:int32)

CONSTRAINT


public constant CONSTRAINT → (19:int32)

CONSTRAINT_​CHECK


public constant CONSTRAINT_CHECK → (275:int32)

CONSTRAINT_​COMMITHOOK


public constant CONSTRAINT_COMMITHOOK → (531:int32)

CONSTRAINT_​DATATYPE


public constant CONSTRAINT_DATATYPE → (3091:int32)

CONSTRAINT_​FOREIGNKEY


public constant CONSTRAINT_FOREIGNKEY → (787:int32)

CONSTRAINT_​FUNCTION


public constant CONSTRAINT_FUNCTION → (1043:int32)

CONSTRAINT_​NOTNULL


public constant CONSTRAINT_NOTNULL → (1299:int32)

CONSTRAINT_​PINNED


public constant CONSTRAINT_PINNED → (2835:int32)

CONSTRAINT_​PRIMARYKEY


public constant CONSTRAINT_PRIMARYKEY → (1555:int32)

CONSTRAINT_​ROWID


public constant CONSTRAINT_ROWID → (2579:int32)

CONSTRAINT_​TRIGGER


public constant CONSTRAINT_TRIGGER → (1811:int32)

CONSTRAINT_​UNIQUE


public constant CONSTRAINT_UNIQUE → (2067:int32)

CONSTRAINT_​VTAB


public constant CONSTRAINT_VTAB → (2323:int32)

CORRUPT


public constant CORRUPT → (11:int32)

CORRUPT_​INDEX


public constant CORRUPT_INDEX → (779:int32)

CORRUPT_​SEQUENCE


public constant CORRUPT_SEQUENCE → (523:int32)

CORRUPT_​VTAB


public constant CORRUPT_VTAB → (267:int32)

DBSTATUS_​CACHE_​HIT


public constant DBSTATUS_CACHE_HIT → (7:int32)

DBSTATUS_​CACHE_​MISS


public constant DBSTATUS_CACHE_MISS → (8:int32)

DBSTATUS_​CACHE_​SPILL


public constant DBSTATUS_CACHE_SPILL → (12:int32)

DBSTATUS_​CACHE_​USED


public constant DBSTATUS_CACHE_USED → (1:int32)

DBSTATUS_​CACHE_​USED_​SHARED


public constant DBSTATUS_CACHE_USED_SHARED → (11:int32)

SQLITE_DBSTATUS_CACHE_USED_SHARED
https://sqlite.org/c3ref/c_dbstatus_options.html

DBSTATUS_​CACHE_​WRITE


public constant DBSTATUS_CACHE_WRITE → (9:int32)

DBSTATUS_​DEFERRED_​FKS


public constant DBSTATUS_DEFERRED_FKS → (10:int32)

DBSTATUS_​LOOKASIDE_​HIT


public constant DBSTATUS_LOOKASIDE_HIT → (4:int32)

SQLITE_DBSTATUS_LOOKASIDE_HIT
https://sqlite.org/c3ref/c_dbstatus_options.html

DBSTATUS_​LOOKASIDE_​MISS_​FULL


public constant DBSTATUS_LOOKASIDE_MISS_FULL → (6:int32)

SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL
https://sqlite.org/c3ref/c_dbstatus_options.html

DBSTATUS_​LOOKASIDE_​MISS_​SIZE


public constant DBSTATUS_LOOKASIDE_MISS_SIZE → (5:int32)

SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE
https://sqlite.org/c3ref/c_dbstatus_options.html

DBSTATUS_​LOOKASIDE_​USED


public constant DBSTATUS_LOOKASIDE_USED → (0:int32)

SQLITE_DBSTATUS_LOOKASIDE_USED
https://sqlite.org/c3ref/c_dbstatus_options.html

DBSTATUS_​SCHEMA_​USED


public constant DBSTATUS_SCHEMA_USED → (2:int32)

DBSTATUS_​STMT_​USED


public constant DBSTATUS_STMT_USED → (3:int32)

DONE


public constant DONE → (101:int32)

EMPTY


public constant EMPTY → (16:int32)

ERROR


public constant ERROR → (1:int32)

ERROR_​MISSING_​COLLSEQ


public constant ERROR_MISSING_COLLSEQ → (257:int32)

ERROR_​RETRY


public constant ERROR_RETRY → (513:int32)

ERROR_​SNAPSHOT


public constant ERROR_SNAPSHOT → (769:int32)

FLOAT


public constant FLOAT → (2:int32)

FORMAT


public constant FORMAT → (24:int32)

FULL


public constant FULL → (13:int32)

INTEGER


public constant INTEGER → (1:int32)

INTERNAL


public constant INTERNAL → (2:int32)

INTERRUPT


public constant INTERRUPT → (9:int32)

IOERR


public constant IOERR → (10:int32)

IOERR_​ACCESS


public constant IOERR_ACCESS → (3338:int32)

IOERR_​AUTH


public constant IOERR_AUTH → (7178:int32)

IOERR_​BEGIN_​ATOMIC


public constant IOERR_BEGIN_ATOMIC → (7434:int32)

IOERR_​BLOCKED


public constant IOERR_BLOCKED → (2826:int32)

IOERR_​CHECKRESERVEDLOCK


public constant IOERR_CHECKRESERVEDLOCK → (3594:int32)

IOERR_​CLOSE


public constant IOERR_CLOSE → (4106:int32)

IOERR_​COMMIT_​ATOMIC


public constant IOERR_COMMIT_ATOMIC → (7690:int32)

IOERR_​CONVPATH


public constant IOERR_CONVPATH → (6666:int32)

IOERR_​CORRUPTFS


public constant IOERR_CORRUPTFS → (8458:int32)

IOERR_​DATA


public constant IOERR_DATA → (8202:int32)

IOERR_​DELETE


public constant IOERR_DELETE → (2570:int32)

IOERR_​DELETE_​NOENT


public constant IOERR_DELETE_NOENT → (5898:int32)

IOERR_​DIR_​CLOSE


public constant IOERR_DIR_CLOSE → (4362:int32)

IOERR_​DIR_​FSYNC


public constant IOERR_DIR_FSYNC → (1290:int32)

IOERR_​FSTAT


public constant IOERR_FSTAT → (1802:int32)

IOERR_​FSYNC


public constant IOERR_FSYNC → (1034:int32)

IOERR_​GETTEMPPATH


public constant IOERR_GETTEMPPATH → (6410:int32)

IOERR_​LOCK


public constant IOERR_LOCK → (3850:int32)

IOERR_​MMAP


public constant IOERR_MMAP → (6154:int32)

IOERR_​NOMEM


public constant IOERR_NOMEM → (3082:int32)

IOERR_​RDLOCK


public constant IOERR_RDLOCK → (2314:int32)

IOERR_​READ


public constant IOERR_READ → (266:int32)

IOERR_​ROLLBACK_​ATOMIC


public constant IOERR_ROLLBACK_ATOMIC → (7946:int32)

IOERR_​SEEK


public constant IOERR_SEEK → (5642:int32)

IOERR_​SHMLOCK


public constant IOERR_SHMLOCK → (5130:int32)

IOERR_​SHMMAP


public constant IOERR_SHMMAP → (5386:int32)

IOERR_​SHMOPEN


public constant IOERR_SHMOPEN → (4618:int32)

IOERR_​SHMSIZE


public constant IOERR_SHMSIZE → (4874:int32)

IOERR_​SHORT_​READ


public constant IOERR_SHORT_READ → (522:int32)

IOERR_​TRUNCATE


public constant IOERR_TRUNCATE → (1546:int32)

IOERR_​UNLOCK


public constant IOERR_UNLOCK → (2058:int32)

IOERR_​VNODE


public constant IOERR_VNODE → (6922:int32)

IOERR_​WRITE


public constant IOERR_WRITE → (778:int32)

LIMIT_​ATTACHED


public constant LIMIT_ATTACHED → (7:int32)

LIMIT_​COLUMN


public constant LIMIT_COLUMN → (2:int32)

LIMIT_​COMPOUND_​SELECT


public constant LIMIT_COMPOUND_SELECT → (4:int32)

SQLITE_LIMIT_COMPOUND_SELECT
https://sqlite.org/c3ref/c_limit_attached.html

LIMIT_​EXPR_​DEPTH


public constant LIMIT_EXPR_DEPTH → (3:int32)

LIMIT_​FUNCTION_​ARG


public constant LIMIT_FUNCTION_ARG → (6:int32)

LIMIT_​LENGTH


public constant LIMIT_LENGTH → (0:int32)

LIMIT_​LIKE_​PATTERN_​LENGTH


public constant LIMIT_LIKE_PATTERN_LENGTH → (8:int32)

SQLITE_LIMIT_LIKE_PATTERN_LENGTH
https://sqlite.org/c3ref/c_limit_attached.html

LIMIT_​SQL_​LENGTH


public constant LIMIT_SQL_LENGTH → (1:int32)

LIMIT_​TRIGGER_​DEPTH


public constant LIMIT_TRIGGER_DEPTH → (10:int32)

LIMIT_​VARIABLE_​NUMBER


public constant LIMIT_VARIABLE_NUMBER → (9:int32)

SQLITE_LIMIT_VARIABLE_NUMBER
https://sqlite.org/c3ref/c_limit_attached.html

LIMIT_​VDBE_​OP


public constant LIMIT_VDBE_OP → (5:int32)

LIMIT_​WORKER_​THREADS


public constant LIMIT_WORKER_THREADS → (11:int32)

LOCKED


public constant LOCKED → (6:int32)

LOCKED_​SHAREDCACHE


public constant LOCKED_SHAREDCACHE → (262:int32)

LOCKED_​VTAB


public constant LOCKED_VTAB → (518:int32)

MISMATCH


public constant MISMATCH → (20:int32)

MISUSE


public constant MISUSE → (21:int32)

NOLFS


public constant NOLFS → (22:int32)

NOMEM


public constant NOMEM → (7:int32)

NOTADB


public constant NOTADB → (26:int32)

NOTFOUND


public constant NOTFOUND → (12:int32)

NOTICE


public constant NOTICE → (27:int32)

NOTICE_​RECOVER_​ROLLBACK


public constant NOTICE_RECOVER_ROLLBACK → (539:int32)

NOTICE_​RECOVER_​WAL


public constant NOTICE_RECOVER_WAL → (283:int32)

NULL


public constant NULL → (5:int32)

OK


public constant OK → (0:int32)

OK_​LOAD_​PERMANENTLY


public constant OK_LOAD_PERMANENTLY → (256:int32)

OPEN_​CREATE


public constant OPEN_CREATE → (4:int32)

OPEN_​EXRESCODE


public constant OPEN_EXRESCODE → (33554432:int32)

OPEN_​FULLMUTEX


public constant OPEN_FULLMUTEX → (65536:int32)

OPEN_​MEMORY


public constant OPEN_MEMORY → (128:int32)

OPEN_​NOFOLLOW


public constant OPEN_NOFOLLOW → (16777216:int32)

OPEN_​NOMUTEX


public constant OPEN_NOMUTEX → (32768:int32)

OPEN_​PRIVATECACHE


public constant OPEN_PRIVATECACHE → (262144:int32)

OPEN_​READONLY


public constant OPEN_READONLY → (1:int32)

OPEN_​READWRITE


public constant OPEN_READWRITE → (2:int32)

OPEN_​SHAREDCACHE


public constant OPEN_SHAREDCACHE → (131072:int32)

OPEN_​URI


public constant OPEN_URI → (64:int32)

PERM


public constant PERM → (3:int32)

PREPARE_​DONT_​LOG


public constant PREPARE_DONT_LOG → (16:int32)

PREPARE_​NORMALIZE


public constant PREPARE_NORMALIZE → (2:int32)

PREPARE_​NO_​VTAB


public constant PREPARE_NO_VTAB → (4:int32)

PREPARE_​PERSISTENT


public constant PREPARE_PERSISTENT → (1:int32)

PROTOCOL


public constant PROTOCOL → (15:int32)

RANGE


public constant RANGE → (25:int32)

READONLY


public constant READONLY → (8:int32)

READONLY_​CANTINIT


public constant READONLY_CANTINIT → (1288:int32)

READONLY_​CANTLOCK


public constant READONLY_CANTLOCK → (520:int32)

READONLY_​DBMOVED


public constant READONLY_DBMOVED → (1032:int32)

READONLY_​DIRECTORY


public constant READONLY_DIRECTORY → (1544:int32)

READONLY_​RECOVERY


public constant READONLY_RECOVERY → (264:int32)

READONLY_​ROLLBACK


public constant READONLY_ROLLBACK → (776:int32)

ROW


public constant ROW → (100:int32)

SCHEMA


public constant SCHEMA → (17:int32)

SERIALIZE_​NOCOPY


public constant SERIALIZE_NOCOPY → (1:int32)

STATUS_​MALLOC_​COUNT


public constant STATUS_MALLOC_COUNT → (9:int32)

STATUS_​MALLOC_​SIZE


public constant STATUS_MALLOC_SIZE → (5:int32)

STATUS_​MEMORY_​USED


public constant STATUS_MEMORY_USED → (0:int32)

STATUS_​PAGECACHE_​OVERFLOW


public constant STATUS_PAGECACHE_OVERFLOW → (2:int32)

SQLITE_STATUS_PAGECACHE_OVERFLOW
https://sqlite.org/c3ref/c_status_malloc_count.html

STATUS_​PAGECACHE_​SIZE


public constant STATUS_PAGECACHE_SIZE → (7:int32)

STATUS_​PAGECACHE_​USED


public constant STATUS_PAGECACHE_USED → (1:int32)

STATUS_​PARSER_​STACK


public constant STATUS_PARSER_STACK → (6:int32)

STMTSTATUS_​AUTOINDEX


public constant STMTSTATUS_AUTOINDEX → (3:int32)

STMTSTATUS_​FILTER_​HIT


public constant STMTSTATUS_FILTER_HIT → (8:int32)

STMTSTATUS_​FILTER_​MISS


public constant STMTSTATUS_FILTER_MISS → (7:int32)

STMTSTATUS_​FULLSCAN_​STEP


public constant STMTSTATUS_FULLSCAN_STEP → (1:int32)

SQLITE_STMTSTATUS_FULLSCAN_STEP
https://sqlite.org/c3ref/c_stmtstatus_counter.html

STMTSTATUS_​MEMUSED


public constant STMTSTATUS_MEMUSED → (99:int32)

STMTSTATUS_​REPREPARE


public constant STMTSTATUS_REPREPARE → (5:int32)

STMTSTATUS_​RUN


public constant STMTSTATUS_RUN → (6:int32)

STMTSTATUS_​SORT


public constant STMTSTATUS_SORT → (2:int32)

STMTSTATUS_​VM_​STEP


public constant STMTSTATUS_VM_STEP → (4:int32)

TEXT


public constant TEXT → (3:int32)

TOOBIG


public constant TOOBIG → (18:int32)

UTF16


public constant UTF16 → (4:int32)

UTF16​BE


public constant UTF16BE → (3:int32)

UTF16​LE


public constant UTF16LE → (2:int32)

UTF8


public constant UTF8 → (1:int32)

WARNING


public constant WARNING → (28:int32)

WARNING_​AUTOINDEX


public constant WARNING_AUTOINDEX → (284:int32)

Public / Constructors

Get


public static method Get → ()

returns → SQLite3

The native library wrapper or null iff not available.

Returns the SQLite3 wrapper for the loaded SQLite3 library.

Public / Methods

Bind​Blob64


public method BindBlob64 → (4)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

value in : IntPtr

The parameter value.

length in : int64

The length in bytes.

returns → int32

The result value.

Bind​Double


public method BindDouble → (3)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

value in : float64

The parameter value.

returns → int32

The result value.

Bind​Int


public method BindInt → (3)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

value in : int32

The parameter value.

returns → int32

The result value.

Bind​Int64


public method BindInt64 → (3)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

value in : int64

The parameter value.

returns → int32

The result value.

Bind​Null


public method BindNull → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

returns → int32

The result value.

Bind​Parameter​Count


public method BindParameterCount → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Bind​Parameter​Index


public method BindParameterIndex → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

name in : string

The parameter name.

returns → int32

The result value.

Bind​Parameter​Name


public method BindParameterName → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

returns → string

The result value.

Bind​Text


public method BindText → (3)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

value in : string

The parameter value.

returns → int32

The result value.

Bind​Value


public method BindValue → (3)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

value in : IntPtr

The parameter value.

returns → int32

The result value.

Bind​Zeroblob64


public method BindZeroblob64 → (3)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The parameter index.

length in : int64

The length in bytes.

returns → int32

The result value.

sqlite3_bind_zeroblob64
https://sqlite.org/c3ref/bind_blob.html

Blob​Bytes


public method BlobBytes → (1)

blob in : IntPtr

The sqlite3_blob* pointer.

returns → int32

The result value.

Blob​Close


public method BlobClose → (1)

blob in : IntPtr

The sqlite3_blob* pointer.

returns → int32

The result value.

Blob​Open


public method BlobOpen → (7)

database in : IntPtr

The sqlite3* pointer.

name in : string

The symbolic database name.

table in : string

The table name.

column in : string

The column name.

row in : int64

The row identifier.

flags in : int32

The set of flags.

blob out : IntPtr

The sqlite3_blob* pointer.

returns → int32

The result value.

Blob​Read


public method BlobRead → (4)

blob in : IntPtr

The sqlite3_blob* pointer.

buffer in : IntPtr

The data buffer.

length in : int32

The length in bytes.

offset in : int32

The byte offset.

returns → int32

The result value.

Blob​Reopen


public method BlobReopen → (2)

blob in : IntPtr

The sqlite3_blob* pointer.

row in : int64

The row identifier.

returns → int32

The result value.

Blob​Write


public method BlobWrite → (4)

blob in : IntPtr

The sqlite3_blob* pointer.

buffer in : IntPtr

The data buffer.

length in : int32

The length in bytes.

offset in : int32

The byte offset.

returns → int32

The result value.

Changes64


public method Changes64 → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int64

The result value.

Clear​Bindings


public method ClearBindings → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Close


public method Close → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

Column​Blob


public method ColumnBlob → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → IntPtr

The result value.

Column​Bytes


public method ColumnBytes → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → int32

The result value.

Column​Count


public method ColumnCount → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Column​Database​Name


public method ColumnDatabaseName → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → string

The result value.

Column​Decltype


public method ColumnDecltype → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → string

The result value.

Column​Double


public method ColumnDouble → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → float64

The result value.

Column​Int


public method ColumnInt → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → int32

The result value.

Column​Int64


public method ColumnInt64 → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → int64

The result value.

Column​Name


public method ColumnName → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → string

The result value.

Column​Origin​Name


public method ColumnOriginName → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → string

The result value.

Column​Table​Name


public method ColumnTableName → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → string

The result value.

Column​Text


public method ColumnText → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → string

The result value.

Column​Type


public method ColumnType → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → int32

The result value.

Column​Value


public method ColumnValue → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

index in : int32

The column index.

returns → IntPtr

The result value.

Data​Count


public method DataCount → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Db​Cacheflush


public method DbCacheflush → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

Db​Handle


public method DbHandle → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → IntPtr

The result value.

Db​Name


public method DbName → (2)

database in : IntPtr

The sqlite3* pointer.

index in : int32

The database name index.

returns → string

The result value.

Db​Readonly


public method DbReadonly → (2)

database in : IntPtr

The sqlite3* pointer.

name in : string

The symbolic database name.

returns → int32

The result value.

Db​Release​Memory


public method DbReleaseMemory → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

Db​Status


public method DbStatus → (5)

database in : IntPtr

The sqlite3* pointer.

flags in : int32

The set of flags.

current out : int32

The current value.

highest out : int32

The highest value.

reset in : int32

Reset values?

returns → int32

The result value.

Deserialize


public method Deserialize → (5)

database in : IntPtr

The sqlite3* pointer.

name in : string

The symbolic database name.

buffer in : IntPtr

The data buffer.

length in : int64

The length in bytes.

flags in : int32

The set of flags.

returns → int32

The result value.

Errcode


public method Errcode → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

Errmsg


public method Errmsg → (1)

database in : IntPtr

The sqlite3* pointer.

returns → string

The result value.

Error​Offset


public method ErrorOffset → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

Errstr


public method Errstr → (1)

error in : int32

The error code.

returns → string

The result value.

Expanded​Sql


public method ExpandedSql → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → string

The result value.

Extended​Errcode


public method ExtendedErrcode → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

sqlite3_extended_errcode
https://sqlite.org/c3ref/errcode.html

Extended​Result​Codes


public method ExtendedResultCodes → (2)

database in : IntPtr

The sqlite3* pointer.

flags in : int32

The set of flags.

returns → int32

The result value.

Finalize


public method Finalize → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Free


public method Free → (1)

buffer in : IntPtr

The data buffer.

Get​Autocommit


public method GetAutocommit → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

Hard​Heap​Limit64


public method HardHeapLimit64 → (1)

length in : int64

The length in bytes.

returns → int64

The result value.

Initialize2


public method Initialize2 → ()

returns → int32

The result value.

Interrupt


public method Interrupt → (1)

database in : IntPtr

The sqlite3* pointer.

Is​Interrupted


public method IsInterrupted → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int32

The result value.

Keyword​Check


public method KeywordCheck → (1)

keyword in : string

The SQL keyword.

returns → int32

The result value.

Keyword​Count


public method KeywordCount → ()

returns → int32

The result value.

Keyword​Name


public method KeywordName → (3)

keyword in : int32

The SQL keyword.

buffer out : IntPtr

The data buffer.

length out : int32

The length in bytes.

returns → int32

The result value.

Last​Insert​Rowid


public method LastInsertRowid → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int64

The result value.

Libversion


public method Libversion → ()

returns → string

The result value.

Libversion​Number


public method LibversionNumber → ()

returns → int32

The result value.

sqlite3_libversion_number
https://sqlite.org/c3ref/libversion.html

Limit


public method Limit → (3)

database in : IntPtr

The sqlite3* pointer.

index in : int32

The parameter index.

value in : int32

The parameter value.

returns → int32

The result value.

Memory​Highwater


public method MemoryHighwater → (1)

flags in : int32

The set of flags.

returns → int64

The result value.

Memory​Used


public method MemoryUsed → ()

returns → int64

The result value.

Next​Stmt


public method NextStmt → (2)

database in : IntPtr

The sqlite3* pointer.

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → IntPtr

The result value.

Open​V2


public method OpenV2 → (4)

file in : string

The file path.

database out : IntPtr

The sqlite3* pointer.

flags in : int32

The set of flags.

vfs in : string

Name of filesystem module.

returns → int32

The result value.

Prepare​V3


public method PrepareV3 → (4)

database in : IntPtr

The sqlite3* pointer.

sql in : string

The SQL code.

flags in : int32

The set of flags.

statement out : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Randomness


public method Randomness → (2)

length in : int32

The length in bytes.

buffer in : IntPtr

The data buffer.

Release​Memory


public method ReleaseMemory → (1)

length in : int32

The length in bytes.

returns → int32

The result value.

Reset


public method Reset → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Serialize


public method Serialize → (4)

database in : IntPtr

The sqlite3* pointer.

name in : string

The symbolic database name.

length out : int64

The length in bytes.

flags in : int32

The set of flags.

returns → IntPtr

The result value.

Set​Last​Insert​Rowid


public method SetLastInsertRowid → (2)

database in : IntPtr

The sqlite3* pointer.

row in : int64

The row identifier.

Shutdown


public method Shutdown → ()

returns → int32

The result value.

Soft​Heap​Limit64


public method SoftHeapLimit64 → (1)

length in : int64

The length in bytes.

returns → int64

The result value.

Sourceid


public method Sourceid → ()

returns → string

The result value.

Sql


public method Sql → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → string

The result value.

Status64


public method Status64 → (4)

flags in : int32

The set of flags.

current out : int64

The current value.

highest out : int64

The highest value.

reset in : int32

Reset values?

returns → int32

The result value.

Step


public method Step → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Stmt​Busy


public method StmtBusy → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Stmt​Explain


public method StmtExplain → (2)

statement in : IntPtr

The sqlite3_stmt* pointer.

flags in : int32

The set of flags.

returns → int32

The result value.

Stmt​Isexplain


public method StmtIsexplain → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Stmt​Readonly


public method StmtReadonly → (1)

statement in : IntPtr

The sqlite3_stmt* pointer.

returns → int32

The result value.

Stmt​Status


public method StmtStatus → (3)

statement in : IntPtr

The sqlite3_stmt* pointer.

flags in : int32

The set of flags.

reset in : int32

Reset values?

returns → int32

The result value.

Total​Changes64


public method TotalChanges64 → (1)

database in : IntPtr

The sqlite3* pointer.

returns → int64

The result value.

Txn​State


public method TxnState → (2)

database in : IntPtr

The sqlite3* pointer.

name in : string

The symbolic database name.

returns → int32

The result value.

Value​Blob


public method ValueBlob → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → IntPtr

The result value.

Value​Bytes


public method ValueBytes → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int32

The result value.

Value​Double


public method ValueDouble → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → float64

The result value.

Value​Dup


public method ValueDup → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → IntPtr

The result value.

Value​Encoding


public method ValueEncoding → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int32

The result value.

Value​Free


public method ValueFree → (1)

value in : IntPtr

The sqlite3_value* pointer.

Value​Frombind


public method ValueFrombind → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int32

The result value.

Value​Int


public method ValueInt → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int32

The result value.

Value​Int64


public method ValueInt64 → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int64

The result value.

Value​Nochange


public method ValueNochange → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int32

The result value.

Value​Numeric​Type


public method ValueNumericType → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int32

The result value.

sqlite3_value_numeric_type
https://sqlite.org/c3ref/value_blob.html

Value​Text


public method ValueText → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → string

The result value.

Value​Type


public method ValueType → (1)

value in : IntPtr

The sqlite3_value* pointer.

returns → int32

The result value.

Public / Attributes

Is​Available


public static attribute IsAvailable → (get)

value : bool

true if the library is available,
false if not, i.e. Get will return null.

Checks if the SQLite3 library is available.

Extensions

Api​Error​Throw

2 overloads


public static method ApiErrorThrow1 → (3)

source in : string @ Tag

The error source tag.

path in : Path

The database file path.

database in : IntPtr

The database object.

returns → IOException

The ready-to-throw exception.

Wraps the current database error message in an exception.

See also

SQLite3.Errmsg


public static method ApiErrorThrow2 → (5)

source in : string @ Tag

The error source tag.

path in : Path

The database file path.

function in : string

The failed function code.

error in : int32

The error code.

database opt : IntPtr = default(IntPtr)

The sqlite3* pointer, if available.

returns → IOException

The ready-to-throw exception.

Wraps the current database error message in an exception.

Api​Execute​Statement

2 overloads


public static method ApiExecuteStatement1 → (2)

file in : Path

[not-null]
The database file path or Path.Unknown.

statement in : IntPtr

The statement object.

Executes the given prepared statement in.

This method is a shortcut to SQLite3.PrepareV3, SQLite3.Step and SQLite3.Finalize.

IOException

If an I/O error has occurred.


public static method ApiExecuteStatement2 → (3)

file in : Path

[not-null]
The database file path or Path.Unknown.

database in : IntPtr

The database object.

sql in : string

[not-null]
The SQL code.

Executes the given sql in statement.

This method is a shortcut to SQLite3.PrepareV3, SQLite3.Step and SQLite3.Finalize.

IOException

If an I/O error has occurred.

Api​Prepare​Statement


public static method ApiPrepareStatement → (4)

file in : Path

[not-null]
The database file path or Path.Unknown.

database in : IntPtr

The database object.

sql in : string

[not-null]
The SQL code.

persistent in : bool

Use SQLite3.PREPARE_PERSISTENT?

returns → IntPtr

The sqlite3_sttmt* pointer.

Prepares the given sql in statement.

This method is a shortcut to SQLite3.PrepareV3.

IOException

If an I/O error has occurred.