Platforms to show: All Mac Windows Linux Cross-Platform
Back to InternalSQLiteLibraryMBS module.
InternalSQLiteLibraryMBS.CompileOption(index as Integer) as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Index index starting with zero until you get back an empty name.
Some examples using this method:
InternalSQLiteLibraryMBS.CompileOptionUsed(optionName as String) as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If you need a specific option set, please contact MBS support.
Some examples using this method:
InternalSQLiteLibraryMBS.DumpToFile(SqliteDBConectionHandle as Ptr, File as FolderItem, TableName as string = "", PreserveRowid as Boolean = false, Newlines as Boolean = false, DumpDataOnly as Boolean = false, DumpNoSys as Boolean = false)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Must use the internal SQLite database, otherwise it will crash.
Raises exception if handle or file is nil.
SQL errors are output by SQLite to the output file.
InternalSQLiteLibraryMBS.DumpToString(SqliteDBConectionHandle as Ptr, byref Data as String, MaximumSize as Integer = 10000000, TableName as string = "", PreserveRowid as Boolean = false, Newlines as Boolean = false, DumpDataOnly as Boolean = false, DumpNoSys as Boolean = false)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 22.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Must use the internal SQLite database, otherwise it will crash.
Raises exception if handle is nil or we run out of memory.
SQL errors are output by SQLite to the output file.
Please pass size of memory we should allocate. Then we can run the dump.
if the final COMMIT is missing or the size is close to the limit you gave, you may run again with higher limit.
InternalSQLiteLibraryMBS.DumpToStrings(SqliteDBConectionHandle as Ptr, SchemaName as String = "", TableName as string = "") as String()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 25.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Schema: Which schema to dump. Usually "main".
Table: Which table to dump. Pass "" for all tables.
This subroutine converts the content of an SQLite database into UTF-8 text SQL statements that can be used to exactly recreate the original database. ROWID values are preserved.
The connection handle parameter is the SQLite database connection using our internal SQLite library. Schema is the schema within that database which is to be dumped. Usually the zSchema is "main" but can also be "temp" or any ATTACH-ed database. If Table is not empty, then only the content of that one table is dumped. If zTable is empty, then all tables are dumped.
The generate text is collected and returned as a string array.
InternalSQLiteLibraryMBS.isKeyword(name as string) as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 18.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
InternalSQLiteLibraryMBS.Keywords as String()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 18.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
InternalSQLiteLibraryMBS.LoadICU as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns true on success.
Normally we load them when SQLite initializes and we then add the ICU extension if we find the library.
Call this function toe explicit load them now.
If MBS Plugin can find International Components for Unicode library files, we can load them and use them for proper unicode handling in SQLite.
InternalSQLiteLibraryMBS.SourceID as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
InternalSQLiteLibraryMBS.Use as boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
So instead of having SQL Plugin load sqlite3 shared library from file, we use the one built into this plugin.
InternalSQLiteLibraryMBS.Version as String
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
InternalSQLiteLibraryMBS.VersionNumber as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | SQL | MBS SQL Plugin | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The items on this page are in the following plugins: MBS SQL Plugin.