Platforms to show: All Mac Windows Linux Cross-Platform
SQLite3MBS class Deprecated
Super class: SQLAPIMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SQL | MBS SQL Plugin | 9.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This item is deprecated and should no longer be used.
The class for the native SQLite API.
Deprecated in favor of direct methods on SQLConnectionMBS. Please let us know if you need more SQLite specific functions.
Subclass of the SQLAPIMBS class.
- 5 properties
- property ConnectionHandle as Ptr
- property MemoryHighwater as Int64
- property MemoryUsed as Int64
- Property Version as string
- Property VersionNumber as Integer
- 18 methods
- method BackupFinish(Backup as SQLite3BackupMBS) as Integer
- method BackupInit(Dest as Variant, DestName as String, Source as Variant, SourceName as String) as SQLite3BackupMBS
- method BackupPageCount(Backup as SQLite3BackupMBS) as Integer
- method BackupRemaining(Backup as SQLite3BackupMBS) as Integer
- method BackupStep(Backup as SQLite3BackupMBS, Pages as Integer) as Integer
- method EnableLoadExtension(OnOff as boolean)
- method ErrCode as Integer
- method ErrMessage as string
- method LastInsertRowID as Int64
- method LoadExtension(file as FolderItem, ByRef ErrorMessage as String) as Integer
- method LoadExtension(path as String, ByRef ErrorMessage as String) as Integer
- method MemoryHighwater(reset as boolean) as Int64
- method ReKey(Key as String) as Integer
- method SetBusyHandler(MaxAttempts as Integer = 5)
- method SetBusyTimeout(TimeOutMS as Integer = 20)
- method SetKey(Key as String) as Integer
- method TableColumnMetaData(DBName as string, TableName as string, ColumnName as string, byref DataType as string, byref CollationSequence as string, byref NotNull as boolean, byref PrimaryKey as boolean, byref AutoIncrement as Boolean) as Integer
- method Threadsafe as Integer
- 29 constants
Error Codes
Constant | Value | Description |
---|---|---|
kErrorAbort | 4 |
Callback routine requested an abort. |
kErrorAuth | 23 |
Authorization denied |
kErrorBusy | 5 |
The database file is locked. |
kErrorCantopen | 14 |
Unable to open the database file. |
kErrorConstraint | 19 |
Abort due to constraint violation. |
kErrorCorrupt | 11 |
The database disk image is malformed. |
kErrorDone | 101 |
sqlite3_step() has finished executing. |
kErrorEmpty | 16 |
Database is empty |
kErrorError | 1 |
SQL error or missing database. |
kErrorFormat | 24 |
Auxiliary database format error. |
kErrorFull | 13 |
Insertion failed because database is full. |
kErrorInternal | 2 |
Internal logic error in SQLite |
kErrorInterrupt | 9 |
Operation terminated by sqlite3_interrupt(). |
kErrorIoerr | 10 |
Some kind of disk I/O error occurred. |
kErrorLocked | 6 |
A table in the database is locked. |
kErrorMismatch | 20 |
Data type mismatch. |
kErrorMisuse | 21 |
Library used incorrectly. |
kErrorNolfs | 22 |
Uses OS features not supported on host. |
kErrorNoMem | 7 |
Out of memory. |
kErrorNotaDB | 26 |
File opened that is not a database file. |
kErrorNotFound | 12 |
NOT USED. Table or record not found. |
kErrorOk | 0 |
Successful result |
kErrorPerm | 3 |
Access permission denied. |
kErrorProtocol | 15 |
NOT USED. Database lock protocol error. |
kErrorRange | 25 |
2nd parameter to sqlite3_bind out of range. |
kErrorReadonly | 8 |
Attempt to write a readonly database. |
kErrorRow | 100 |
sqlite3_step() has another row ready. |
kErrorSchema | 17 |
The database schema changed. |
kErrorToobig | 18 |
String or BLOB exceeds size limit. |
Super class SQLAPIMBS
- 2 properties
- property ClassName as String
- property Connection as Variant
This class has no sub classes.
Blog Entries
- News from the MBS Xojo Plugins Version 22.2
- MBS Xojo Plugins, version 22.2pr1
- MBS Xojo Plugins, version 19.5pr1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 17.4
- MBS Releases the MBS Xojo / Real Studio plug-ins in version 16.4
- MBS Releases the MBS Xojo / Real Studio plug-ins in version 16.1
- Embedded SQLite and encryption
- [ANN] MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.4
- SQLite Backup Functions
- MBS REALbasic plug-ins version 9.5
Videos
Release notes
- Version 22.2
- Added ConnectionHandle property to SQLite3MBS class.
- Version 19.5
- Changed BackupInit in SQLite3MBS and SQLiteBackupInit in SQLConnectionMBS and SQLDatabaseMBS classes to take variant and accept both database and connection object for dest and source.
- Changed MemoryHighwater and MemoryUsed in SQLite3MBS class to be regular properties.
- Removed Connection parameters for SQLAPIMBS methods. Not needed anymore for MySQLMBS, DB2MBS, PostgreSQLAPIMBS and SQLite3MBS.
- Removed LibraryLoaded properties from DB2MBS, InformixMBS, MySQLMBS, PostgreSQLAPIMBS and SQLite3MBS classes.
- Version 17.4
- Added MemoryUsed and MemoryHighwater properties to SQLite3MBS class.
- Version 17.1
- Added LibraryLoaded property to DB2MBS, InformixMBS, MySQLMBS, PostgreSQLAPIMBS and SQLite3MBS.
The items on this page are in the following plugins: MBS SQL Plugin.
SQLite3BackupMBS - SQLiteFunctionMBS