Classes | Typedefs | Enumerations
Bentley::BeSQLite Namespace Reference

Classes

struct  AbortOnConflictChangeSet
 A ChangeSet implementation for where conflicts are just not expected. More...
 
struct  AggregateFunction
 A user-defined aggregate function. More...
 
struct  BeBriefcaseId
 A unique Id for a BeBriefcase (a particular copy of a BeSQLite::Db is referred to as a BeBriefcase.) Whenever more than one BeBriefcase of a the same Db exists, each of them must have a unique identifier to facilitate change merging via BeBriefcaseBasedId's. More...
 
struct  BeDbMutex
 Holds a mutex to synchronize multi-thread access to data. More...
 
struct  BeDbMutexHolder
 A convenience class for acquiring and releasing a mutex lock. Lock is acquired on construction and released on destruction. More...
 
struct  BeFileLzmaInStream
 Utility to stream the contents of a file to LZMA routines. More...
 
struct  BeFileLzmaOutStream
 Utility to stream the output of LZMA routines to a file. More...
 
struct  BeGuid
 A 16-byte Globally Unique Id. A value of all zeros means "Invalid Id". More...
 
struct  BeSQLiteLib
 
struct  BlobIO
 A Blob handle for incremental I/O. See sqlite3_blob_open for details. More...
 
struct  BusyRetry
 Supply a BusyRetry handler to BeSQLite (see https://www.sqlite.org/c3ref/busy_handler.html). More...
 
struct  CachedStatement
 A reference-counted Statement. Statement is freed when last reference is Released. More...
 
struct  ChangeGroup
 
struct  Changes
 An Iterator for a ChangeSet or a ChangeStream. More...
 
struct  ChangeSet
 A set of changes to database rows. More...
 
struct  ChangeStream
 A base class for a streaming version of the ChangeSet. More...
 
struct  ChangeTracker
 When enabled, this class maintains a list of "changed rows" (inserts, updates and deletes) for a BeSQLite::Db. More...
 
struct  Db
 A BeSQLite database file. More...
 
struct  DbDupValue
 A duplicated "value" from a BeSQLite function. More...
 
struct  DbFile
 A physical Db file. More...
 
struct  DbFunction
 A user-defined function that can be added to a Db connection and then used in SQL. More...
 
struct  DbTableIterator
 Base class for an Iterator of a BeSQLite::Db table. More...
 
struct  DbValue
 A "value" from a BeSQLite function. More...
 
struct  IByteArray
 
struct  IChangeSet
 
struct  ICompressProgressTracker
 Defines a callback for providing information on the progress of a compress or decompress operation. More...
 
struct  ILzmaInputStream
 Interface to send/read streamed Lzma input. More...
 
struct  ILzmaOutputStream
 Interface to receive/write streamed Lzma output. More...
 
struct  IModelProperty
 Standard properties that an i-model publisher program should add to the .imodel and .ibim files that it creates. More...
 
struct  LzmaDecoder
 Utility to read and decompress streams in the LZMA format. More...
 
struct  LzmaEncoder
 Utility to compress and write streams to the LZMA format. More...
 
struct  LzmaUtility
 Utility to compress/decompress Db-s. More...
 
struct  MemoryLzmaInStream
 Utility to stream the contents of a memory buffer to LZMA routines. More...
 
struct  MemoryLzmaOutStream
 Utility to stream the output of LZMA routines to a memory buffer. More...
 
struct  NamedParams
 Values that can be bound to named parameters of an SQL statement. More...
 
struct  PackageProperty
 
struct  ProfileVersion
 A 4-digit number that specifies the version of the "profile" (schema) of a Db. More...
 
struct  Properties
 The names of properties in the "be_Db" namespace. More...
 
struct  PropertySpec
 Every BeSQLite::Db has a table for storing "Properties". More...
 
struct  PropSpec
 A property specification for the "be_Db" namespace. More...
 
struct  RTree2dVal
 
struct  RTree3dVal
 
struct  RTreeMatchFunction
 A user-defined implementation of the SQLite sqlite3_rtree_query_callback function for using the MATCH keyword for RTree queries. More...
 
struct  Savepoint
 Savepoint encapsulates SQLite transactions against a BeSQLite::Db. More...
 
struct  ScalarFunction
 A user-defined scalar function. More...
 
struct  SchemaChangeSet
 
struct  SnappyFromBlob
 Utility to read Snappy-compressed data from a blob in a database. More...
 
struct  SnappyFromMemory
 Utility to read Snappy-compressed data from memory, typically from an image of a blob. More...
 
struct  SnappyReader
 
struct  SnappyToBlob
 Utility to compress and write data to a blob using "Snappy" compression. More...
 
struct  SqlPrintfString
 Wraps sqlite3_mprintf. Adds convenience that destructor frees memory. More...
 
struct  Statement
 A wrapper for a SQLite Prepared Statement. More...
 
struct  StatementCache
 A cache of SharedStatements that can be reused without re-Preparing. More...
 
struct  StatementDiagnostics
 Class to turn on/off diagnostics for BeSQLite::Statement. More...
 
struct  VirtualSet
 This interface should be implemented to supply the first argument to the BeSQLite function "InVirtualSet". More...
 

Typedefs

typedef BeGuidBeGuidP
 
typedef BeGuidBeGuidR
 
typedef BeGuid const * BeGuidCP
 
typedef BeGuid const & BeGuidCR
 
typedef DbDbP
 
typedef DbDbR
 
typedef Db const * DbCP
 
typedef Db const & DbCR
 
typedef DbFileDbFileP
 
typedef DbFileDbFileR
 
typedef DbFile const * DbFileCP
 
typedef DbFile const & DbFileCR
 
typedef StatementStatementP
 
typedef StatementStatementR
 
typedef Statement const * StatementCP
 
typedef Statement const & StatementCR
 
typedef NamedParamsNamedParamsP
 
typedef NamedParamsNamedParamsR
 
typedef NamedParams const * NamedParamsCP
 
typedef NamedParams const & NamedParamsCR
 
typedef RefCountedPtr
< CachedStatement
CachedStatementPtr
 
typedef PropertySpec const & PropertySpecCR
 
typedef IByteArrayIByteArrayP
 
typedef IByteArrayIByteArrayR
 
typedef IByteArray const * IByteArrayCP
 
typedef IByteArray const & IByteArrayCR
 
typedef ChangeGroupChangeGroupP
 
typedef ChangeGroupChangeGroupR
 
typedef ChangeGroup const * ChangeGroupCP
 
typedef ChangeGroup const & ChangeGroupCR
 
typedef IChangeSetIChangeSetP
 
typedef IChangeSetIChangeSetR
 
typedef IChangeSet const * IChangeSetCP
 
typedef IChangeSet const & IChangeSetCR
 
typedef ChangeSetChangeSetP
 
typedef ChangeSetChangeSetR
 
typedef ChangeSet const * ChangeSetCP
 
typedef ChangeSet const & ChangeSetCR
 
typedef ChangeStreamChangeStreamP
 
typedef ChangeStreamChangeStreamR
 
typedef ChangeStream const * ChangeStreamCP
 
typedef ChangeStream const & ChangeStreamCR
 
typedef SchemaChangeSetSchemaChangeSetP
 
typedef SchemaChangeSetSchemaChangeSetR
 
typedef SchemaChangeSet const * SchemaChangeSetCP
 
typedef SchemaChangeSet const & SchemaChangeSetCR
 
typedef RTree2dVal const * RTree2dValCP
 
typedef RTree2dValRTree2dValP
 
typedef RTree3dVal const & RTree3dValCR
 
typedef RTree3dVal const * RTree3dValCP
 
typedef RTree3dValRTree3dValP
 

Enumerations

enum  DbConstants {
  DbUserVersion = 10, NoCompressionLevel = 0, FastCompressionLevel = 1, DefaultCompressionLevel = 3,
  MaxCompressionLevel = 9
}
 
enum  DbProfileValues {
  BEDB_CURRENT_VERSION_Major = 3, BEDB_CURRENT_VERSION_Minor = 1, BEDB_CURRENT_VERSION_Sub1 = 0, BEDB_CURRENT_VERSION_Sub2 = 1,
  BEDB_SUPPORTED_VERSION_Major = BEDB_CURRENT_VERSION_Major, BEDB_SUPPORTED_VERSION_Minor = 0, BEDB_SUPPORTED_VERSION_Sub1 = 0, BEDB_SUPPORTED_VERSION_Sub2 = 0
}
 
enum  DbResult {
  BE_SQLITE_OK = 0, BE_SQLITE_ERROR = 1, BE_SQLITE_INTERNAL = 2, BE_SQLITE_PERM = 3,
  BE_SQLITE_ABORT = 4, BE_SQLITE_BUSY = 5, BE_SQLITE_LOCKED = 6, BE_SQLITE_NOMEM = 7,
  BE_SQLITE_READONLY = 8, BE_SQLITE_INTERRUPT = 9, BE_SQLITE_IOERR = 10, BE_SQLITE_CORRUPT = 11,
  BE_SQLITE_NOTFOUND = 12, BE_SQLITE_FULL = 13, BE_SQLITE_CANTOPEN = 14, BE_SQLITE_PROTOCOL = 15,
  BE_SQLITE_EMPTY = 16, BE_SQLITE_SCHEMA = 17, BE_SQLITE_TOOBIG = 18, BE_SQLITE_CONSTRAINT_BASE = 19,
  BE_SQLITE_MISMATCH = 20, BE_SQLITE_MISUSE = 21, BE_SQLITE_NOLFS = 22, BE_SQLITE_AUTH = 23,
  BE_SQLITE_FORMAT = 24, BE_SQLITE_RANGE = 25, BE_SQLITE_NOTADB = 26, BE_SQLITE_ROW = 100,
  BE_SQLITE_DONE = 101, BE_SQLITE_IOERR_READ = (BE_SQLITE_IOERR | (1<<8)), BE_SQLITE_IOERR_SHORT_READ = (BE_SQLITE_IOERR | (2<<8)), BE_SQLITE_IOERR_WRITE = (BE_SQLITE_IOERR | (3<<8)),
  BE_SQLITE_IOERR_FSYNC = (BE_SQLITE_IOERR | (4<<8)), BE_SQLITE_IOERR_DIR_FSYNC = (BE_SQLITE_IOERR | (5<<8)), BE_SQLITE_IOERR_TRUNCATE = (BE_SQLITE_IOERR | (6<<8)), BE_SQLITE_IOERR_FSTAT = (BE_SQLITE_IOERR | (7<<8)),
  BE_SQLITE_IOERR_UNLOCK = (BE_SQLITE_IOERR | (8<<8)), BE_SQLITE_IOERR_RDLOCK = (BE_SQLITE_IOERR | (9<<8)), BE_SQLITE_IOERR_DELETE = (BE_SQLITE_IOERR | (10<<8)), BE_SQLITE_IOERR_BLOCKED = (BE_SQLITE_IOERR | (11<<8)),
  BE_SQLITE_IOERR_NOMEM = (BE_SQLITE_IOERR | (12<<8)), BE_SQLITE_IOERR_ACCESS = (BE_SQLITE_IOERR | (13<<8)), BE_SQLITE_IOERR_CHECKRESERVEDLOCK = (BE_SQLITE_IOERR | (14<<8)), BE_SQLITE_IOERR_LOCK = (BE_SQLITE_IOERR | (15<<8)),
  BE_SQLITE_IOERR_CLOSE = (BE_SQLITE_IOERR | (16<<8)), BE_SQLITE_IOERR_DIR_CLOSE = (BE_SQLITE_IOERR | (17<<8)), BE_SQLITE_IOERR_SHMOPEN = (BE_SQLITE_IOERR | (18<<8)), BE_SQLITE_IOERR_SHMSIZE = (BE_SQLITE_IOERR | (19<<8)),
  BE_SQLITE_IOERR_SHMLOCK = (BE_SQLITE_IOERR | (20<<8)), BE_SQLITE_IOERR_SHMMAP = (BE_SQLITE_IOERR | (21<<8)), BE_SQLITE_IOERR_SEEK = (BE_SQLITE_IOERR | (22<<8)), BE_SQLITE_IOERR_DELETE_NOENT = (BE_SQLITE_IOERR | (23<<8)),
  BE_SQLITE_ERROR_FileExists = (BE_SQLITE_IOERR | (1<<24)), BE_SQLITE_ERROR_AlreadyOpen = (BE_SQLITE_IOERR | (2<<24)), BE_SQLITE_ERROR_NoPropertyTable = (BE_SQLITE_IOERR | (3<<24)), BE_SQLITE_ERROR_FileNotFound = (BE_SQLITE_IOERR | (4<<24)),
  BE_SQLITE_ERROR_NoTxnActive = (BE_SQLITE_IOERR | (5<<24)), BE_SQLITE_ERROR_BadDbProfile = (BE_SQLITE_IOERR | (6 << 24)), BE_SQLITE_ERROR_InvalidProfileVersion = (BE_SQLITE_IOERR | (7<<24)), BE_SQLITE_ERROR_ProfileUpgradeFailed = (BE_SQLITE_IOERR | (8<<24)),
  BE_SQLITE_ERROR_ProfileUpgradeFailedCannotOpenForWrite = (BE_SQLITE_IOERR | (9<<24)), BE_SQLITE_ERROR_ProfileTooOld = (BE_SQLITE_IOERR | (10<<24)), BE_SQLITE_ERROR_ProfileTooNewForReadWrite = (BE_SQLITE_IOERR | (11<<24)), BE_SQLITE_ERROR_ProfileTooNew = (BE_SQLITE_IOERR | (12<<24)),
  BE_SQLITE_ERROR_ChangeTrackError = (BE_SQLITE_IOERR | (13<<24)), BE_SQLITE_ERROR_InvalidRevisionVersion = (BE_SQLITE_IOERR | (14 << 24)), BE_SQLITE_ERROR_SchemaReadFailed = (BE_SQLITE_IOERR | 15 << 24), BE_SQLITE_ERROR_SchemaNotFound = (BE_SQLITE_ERROR | 16 << 24),
  BE_SQLITE_ERROR_SchemaTooNew = (BE_SQLITE_IOERR | 16 << 24), BE_SQLITE_ERROR_SchemaTooOld = (BE_SQLITE_IOERR | 17 << 24), BE_SQLITE_ERROR_SchemaImportRequired = (BE_SQLITE_IOERR | 18 << 24), BE_SQLITE_ERROR_SchemaLockFailed = (BE_SQLITE_IOERR | 19 << 24),
  BE_SQLITE_ERROR_SchemaImportFailed = (BE_SQLITE_IOERR | 20 << 24), BE_SQLITE_ERROR_SchemaDomainMismatch = (BE_SQLITE_IOERR | 21 << 24), BE_SQLITE_LOCKED_SHAREDCACHE = (BE_SQLITE_LOCKED | (1<<8)), BE_SQLITE_BUSY_RECOVERY = (BE_SQLITE_BUSY | (1<<8)),
  BE_SQLITE_CANTOPEN_NOTEMPDIR = (BE_SQLITE_CANTOPEN | (1<<8)), BE_SQLITE_CANTOPEN_ISDIR = (BE_SQLITE_CANTOPEN | (2<<8)), BE_SQLITE_CANTOPEN_FULLPATH = (BE_SQLITE_CANTOPEN | (3<<8)), BE_SQLITE_CORRUPT_VTAB = (BE_SQLITE_CORRUPT | (1<<8)),
  BE_SQLITE_READONLY_RECOVERY = (BE_SQLITE_READONLY | (1<<8)), BE_SQLITE_READONLY_CANTLOCK = (BE_SQLITE_READONLY | (2<<8)), BE_SQLITE_READONLY_ROLLBACK = (BE_SQLITE_READONLY | (3<<8)), BE_SQLITE_ABORT_ROLLBACK = (BE_SQLITE_ABORT | (2<<8)),
  BE_SQLITE_CONSTRAINT_CHECK = (BE_SQLITE_CONSTRAINT_BASE | (1<<8)), BE_SQLITE_CONSTRAINT_COMMITHOOK = (BE_SQLITE_CONSTRAINT_BASE | (2<<8)), BE_SQLITE_CONSTRAINT_FOREIGNKEY = (BE_SQLITE_CONSTRAINT_BASE | (3<<8)), BE_SQLITE_CONSTRAINT_FUNCTION = (BE_SQLITE_CONSTRAINT_BASE | (4<<8)),
  BE_SQLITE_CONSTRAINT_NOTNULL = (BE_SQLITE_CONSTRAINT_BASE | (5<<8)), BE_SQLITE_CONSTRAINT_PRIMARYKEY = (BE_SQLITE_CONSTRAINT_BASE | (6<<8)), BE_SQLITE_CONSTRAINT_TRIGGER = (BE_SQLITE_CONSTRAINT_BASE | (7<<8)), BE_SQLITE_CONSTRAINT_UNIQUE = (BE_SQLITE_CONSTRAINT_BASE | (8<<8)),
  BE_SQLITE_CONSTRAINT_VTAB = (BE_SQLITE_CONSTRAINT_BASE | (9<<8))
}
 
enum  DbOpcode : int { Delete = 9, Insert = 18, Update = 23 }
 
enum  DbValueType : int {
  IntegerVal = 1, FloatVal = 2, TextVal = 3, BlobVal = 4,
  NullVal = 5
}
 
enum  BeSQLiteTxnMode : int { None =0, Deferred =1, Immediate =2, Exclusive =3 }
 SQLite Transaction modes corresponding to https://www.sqlite.org/lang_transaction.html. More...
 
enum  DefaultTxn : int { No = (int) BeSQLiteTxnMode::None, Yes = (int) BeSQLiteTxnMode::Deferred, Immediate = (int) BeSQLiteTxnMode::Immediate, Exclusive = (int) BeSQLiteTxnMode::Exclusive }
 Determines whether and how the default transaction should be started when a Db is created or opened. More...
 
enum  ZipErrors {
  ZIP_SUCCESS = 0, ZIP_ERROR_BASE = 0x15000, ZIP_ERROR_WRITE_ERROR = ZIP_ERROR_BASE + 0x01, ZIP_ERROR_COMPRESSION_ERROR = ZIP_ERROR_BASE + 0x02,
  ZIP_ERROR_END_OF_DATA = ZIP_ERROR_BASE + 0x03, ZIP_ERROR_BUFFER_FULL = ZIP_ERROR_BASE + 0x04, ZIP_ERROR_BLOB_READ_ERROR = ZIP_ERROR_BASE + 0x05, ZIP_ERROR_FILE_DOES_NOT_EXIST = ZIP_ERROR_BASE + 0x06,
  ZIP_ERROR_CANNOT_OPEN_OUTPUT = ZIP_ERROR_BASE + 0x07, ZIP_ERROR_UNKNOWN = ZIP_ERROR_BASE + 0x08, ZIP_ERROR_BAD_DATA = ZIP_ERROR_BASE + 0x09, ZIP_ERROR_CANNOT_OPEN_INPUT = ZIP_ERROR_BASE + 0x0A,
  ZIP_ERROR_ABORTED = ZIP_ERROR_BASE + 0x0B, ZIP_ERROR_READ_ERROR = ZIP_ERROR_BASE + 0x0C
}
 Error values returned from the ZLib functions. See ZLib documentation for details. More...
 
enum  IModelSchemaValues {
  PACKAGE_CURRENT_VERSION_Major = 1, PACKAGE_CURRENT_VERSION_Minor = 1, PACKAGE_CURRENT_VERSION_Sub1 = 0, PACKAGE_CURRENT_VERSION_Sub2 = 0,
  PACKAGE_SUPPORTED_VERSION_Major = PACKAGE_CURRENT_VERSION_Major, PACKAGE_SUPPORTED_VERSION_Minor = PACKAGE_CURRENT_VERSION_Minor, PACKAGE_SUPPORTED_VERSION_Sub1 = 0, PACKAGE_SUPPORTED_VERSION_Sub2 = 0
}
 

Typedef Documentation

typedef BeGuid const* BeGuidCP
typedef BeGuid const& BeGuidCR
typedef BeGuid* BeGuidP
typedef BeGuid & BeGuidR
typedef ChangeGroup const* ChangeGroupCP
typedef ChangeGroup const& ChangeGroupCR
typedef ChangeSet const* ChangeSetCP
typedef ChangeSet const& ChangeSetCR
typedef ChangeSet & ChangeSetR
typedef ChangeStream const* ChangeStreamCP
typedef ChangeStream const& ChangeStreamCR
typedef Db const* DbCP
typedef Db const& DbCR
typedef DbFile const* DbFileCP
typedef DbFile const& DbFileCR
typedef DbFile* DbFileP
typedef DbFile & DbFileR
typedef Db* DbP
typedef Db & DbR
typedef IByteArray const* IByteArrayCP
typedef IByteArray const& IByteArrayCR
typedef IChangeSet const* IChangeSetCP
typedef IChangeSet const& IChangeSetCR
typedef NamedParams const* NamedParamsCP
typedef NamedParams const& NamedParamsCR
typedef PropertySpec const& PropertySpecCR
typedef RTree2dVal const* RTree2dValCP
typedef RTree3dVal const* RTree3dValCP
typedef RTree3dVal const& RTree3dValCR
typedef Statement const* StatementCP
typedef Statement const& StatementCR
typedef Statement & StatementR

Enumeration Type Documentation

enum BeSQLiteTxnMode : int
strong

SQLite Transaction modes corresponding to https://www.sqlite.org/lang_transaction.html.

Enumerator
None 
Deferred 
Immediate 
Exclusive 
Enumerator
DbUserVersion 

the "user" version of SQLite databases created by this version of the BeSQLite library

NoCompressionLevel 

do not compress data

FastCompressionLevel 

use the fastest compression level (see Zlib documentation for explanation).

DefaultCompressionLevel 

use the default compression level. This is pretty good tradeoff for size vs. speed.

MaxCompressionLevel 

the maximum compression level. Can be very slow but results in smallest size.

enum DbOpcode : int
strong
Enumerator
Delete 
Insert 
Update 
Enumerator
BEDB_CURRENT_VERSION_Major 
BEDB_CURRENT_VERSION_Minor 
BEDB_CURRENT_VERSION_Sub1 
BEDB_CURRENT_VERSION_Sub2 
BEDB_SUPPORTED_VERSION_Major 
BEDB_SUPPORTED_VERSION_Minor 
BEDB_SUPPORTED_VERSION_Sub1 
BEDB_SUPPORTED_VERSION_Sub2 
enum DbResult
Enumerator
BE_SQLITE_OK 

Successful result.

BE_SQLITE_ERROR 

SQL error or missing database.

BE_SQLITE_INTERNAL 

Internal logic error.

BE_SQLITE_PERM 

Access permission denied.

BE_SQLITE_ABORT 

Callback routine requested an abort.

BE_SQLITE_BUSY 

The database file is locked.

BE_SQLITE_LOCKED 

A table in the database is locked.

BE_SQLITE_NOMEM 

A malloc() failed.

BE_SQLITE_READONLY 

Attempt to write a readonly database.

BE_SQLITE_INTERRUPT 

Operation terminated by interrupt.

BE_SQLITE_IOERR 

Some kind of disk I/O error occurred.

BE_SQLITE_CORRUPT 

The database disk image is malformed.

BE_SQLITE_NOTFOUND 

NOT USED. Table or record not found.

BE_SQLITE_FULL 

Insertion failed because database is full or write operation failed because disk is full.

BE_SQLITE_CANTOPEN 

Unable to open the database file.

BE_SQLITE_PROTOCOL 

Database lock protocol error.

BE_SQLITE_EMPTY 

Database is empty.

BE_SQLITE_SCHEMA 

The database schema changed.

BE_SQLITE_TOOBIG 

String or BLOB exceeds size limit.

BE_SQLITE_CONSTRAINT_BASE 

Abort due to constraint violation. See extended error values.

BE_SQLITE_MISMATCH 

Data type mismatch.

BE_SQLITE_MISUSE 

Library used incorrectly.

BE_SQLITE_NOLFS 

Uses OS features not supported on host.

BE_SQLITE_AUTH 

Authorization denied.

BE_SQLITE_FORMAT 

Auxiliary database format error.

BE_SQLITE_RANGE 

2nd parameter to Bind out of range

BE_SQLITE_NOTADB 

File opened that is not a database file.

BE_SQLITE_ROW 

Step() has another row ready.

BE_SQLITE_DONE 

Step() has finished executing.

BE_SQLITE_IOERR_READ 
BE_SQLITE_IOERR_SHORT_READ 
BE_SQLITE_IOERR_WRITE 
BE_SQLITE_IOERR_FSYNC 
BE_SQLITE_IOERR_DIR_FSYNC 
BE_SQLITE_IOERR_TRUNCATE 
BE_SQLITE_IOERR_FSTAT 
BE_SQLITE_IOERR_UNLOCK 
BE_SQLITE_IOERR_RDLOCK 
BE_SQLITE_IOERR_DELETE 
BE_SQLITE_IOERR_BLOCKED 
BE_SQLITE_IOERR_NOMEM 
BE_SQLITE_IOERR_ACCESS 
BE_SQLITE_IOERR_CHECKRESERVEDLOCK 
BE_SQLITE_IOERR_LOCK 
BE_SQLITE_IOERR_CLOSE 
BE_SQLITE_IOERR_DIR_CLOSE 
BE_SQLITE_IOERR_SHMOPEN 
BE_SQLITE_IOERR_SHMSIZE 
BE_SQLITE_IOERR_SHMLOCK 
BE_SQLITE_IOERR_SHMMAP 
BE_SQLITE_IOERR_SEEK 
BE_SQLITE_IOERR_DELETE_NOENT 
BE_SQLITE_ERROR_FileExists 

attempt to create a new file when a file by that name already exists

BE_SQLITE_ERROR_AlreadyOpen 

attempt to open a BeSQLite::Db that is already in use somewhere.

BE_SQLITE_ERROR_NoPropertyTable 

attempt to open a BeSQLite::Db that doesn't have a property table.

BE_SQLITE_ERROR_FileNotFound 

the database name is not a file.

BE_SQLITE_ERROR_NoTxnActive 

there is no transaction active and the database was opened with AllowImplicitTransactions=false

BE_SQLITE_ERROR_BadDbProfile 

wrong BeSQLite profile version

BE_SQLITE_ERROR_InvalidProfileVersion 

Profile (aka application level BeSQLite schema) of file could not be determined.

BE_SQLITE_ERROR_ProfileUpgradeFailed 

Upgrade of profile (aka application level BeSQLite schema) of file failed.

BE_SQLITE_ERROR_ProfileUpgradeFailedCannotOpenForWrite 

Upgrade of profile (aka application level SQLite schema) of file failed because the file could not be reopened in read-write mode.

BE_SQLITE_ERROR_ProfileTooOld 

Profile (aka application level BeSQLite schema) of file is too old. Therefore file cannot be opened.

BE_SQLITE_ERROR_ProfileTooNewForReadWrite 

Profile (aka application level schema) of file is too new for read-write access. Therefore file can only be opened read-only.

BE_SQLITE_ERROR_ProfileTooNew 

Profile (aka application level SQLite schema) of file is too new. Therefore file cannot be opened.

BE_SQLITE_ERROR_ChangeTrackError 

attempt to commit with active changetrack

BE_SQLITE_ERROR_InvalidRevisionVersion 

invalid version of the revision file is being imported

BE_SQLITE_ERROR_SchemaReadFailed 

Error reading schemas.

BE_SQLITE_ERROR_SchemaNotFound 

The schema was not found in the database.

BE_SQLITE_ERROR_SchemaTooNew 

The schemas found in the database are too new, and the application needs to be upgraded.

BE_SQLITE_ERROR_SchemaTooOld 

The schemas found in the database are too old, and the DgnDb needs to be recreated after extensive data transformations ("teleported").

BE_SQLITE_ERROR_SchemaImportRequired 

The schemas can and must be imported.

BE_SQLITE_ERROR_SchemaLockFailed 

Error acquiring schema lock.

BE_SQLITE_ERROR_SchemaImportFailed 

Error importing schemas.

BE_SQLITE_ERROR_SchemaDomainMismatch 

The name of the schema doesn't match the name of the domain.

BE_SQLITE_LOCKED_SHAREDCACHE 
BE_SQLITE_BUSY_RECOVERY 
BE_SQLITE_CANTOPEN_NOTEMPDIR 
BE_SQLITE_CANTOPEN_ISDIR 
BE_SQLITE_CANTOPEN_FULLPATH 
BE_SQLITE_CORRUPT_VTAB 
BE_SQLITE_READONLY_RECOVERY 
BE_SQLITE_READONLY_CANTLOCK 
BE_SQLITE_READONLY_ROLLBACK 
BE_SQLITE_ABORT_ROLLBACK 
BE_SQLITE_CONSTRAINT_CHECK 
BE_SQLITE_CONSTRAINT_COMMITHOOK 
BE_SQLITE_CONSTRAINT_FOREIGNKEY 
BE_SQLITE_CONSTRAINT_FUNCTION 
BE_SQLITE_CONSTRAINT_NOTNULL 
BE_SQLITE_CONSTRAINT_PRIMARYKEY 
BE_SQLITE_CONSTRAINT_TRIGGER 
BE_SQLITE_CONSTRAINT_UNIQUE 
BE_SQLITE_CONSTRAINT_VTAB 
enum DbValueType : int
strong
Enumerator
IntegerVal 
FloatVal 
TextVal 
BlobVal 
NullVal 
enum DefaultTxn : int
strong

Determines whether and how the default transaction should be started when a Db is created or opened.

Enumerator
No 

Do not start a default transaction.

This is generally not a good idea except for very specialized cases. All access to a database requires a transaction. So, unless you start a "default" transaction, you must wrap all SQL statements with a Savepoint.

Yes 

Create a default "normal" transaction. SQLite will acquire locks as they are needed.

Immediate 

Create a default transaction using SQLite "immediate" mode.

This acquires the "reserved" locks on the database (see http://www.sqlite.org/lang_transaction.html) when the file is opened and then attempts to reacquire them every time the default transaction is committed.

Exclusive 

Create a default transaction using SQLite "exclusive" mode.

This acquires all locks on the database (see http://www.sqlite.org/lang_transaction.html) when the file is opened. The locks are never released until the database is closed. Only exclusive access guarantees that no other process will be able to gain access (and thereby block access from this connection) to the file when the default transaction is committed. Use of DefaultTxn_Exclusive requires that the database be opened for read+write access and the open will fail if you attempt to use it on a readonly connection.

Enumerator
PACKAGE_CURRENT_VERSION_Major 
PACKAGE_CURRENT_VERSION_Minor 
PACKAGE_CURRENT_VERSION_Sub1 
PACKAGE_CURRENT_VERSION_Sub2 
PACKAGE_SUPPORTED_VERSION_Major 
PACKAGE_SUPPORTED_VERSION_Minor 
PACKAGE_SUPPORTED_VERSION_Sub1 
PACKAGE_SUPPORTED_VERSION_Sub2 
enum ZipErrors

Error values returned from the ZLib functions. See ZLib documentation for details.

Enumerator
ZIP_SUCCESS 
ZIP_ERROR_BASE 
ZIP_ERROR_WRITE_ERROR 
ZIP_ERROR_COMPRESSION_ERROR 
ZIP_ERROR_END_OF_DATA 
ZIP_ERROR_BUFFER_FULL 
ZIP_ERROR_BLOB_READ_ERROR 
ZIP_ERROR_FILE_DOES_NOT_EXIST 
ZIP_ERROR_CANNOT_OPEN_OUTPUT 
ZIP_ERROR_UNKNOWN 
ZIP_ERROR_BAD_DATA 
ZIP_ERROR_CANNOT_OPEN_INPUT 
ZIP_ERROR_ABORTED 
ZIP_ERROR_READ_ERROR 

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.