Platforms to show: All Mac Windows Linux Cross-Platform
SQLiteFunctionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SQL | MBS SQL Plugin | 24.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can use this with our InternalSQLiteLibraryMBS module and the SQL classes within MBS Plugin to work on SQLite databases and as extension for SQLiteDatabase in Xojo.
- event Perform(ArgumentCount as Integer, Arguments() as Variant)
- 6 properties
- property ArgumentCount as Integer
- property CallCounter as Integer
- property DatabaseCount as Integer
- property Enabled as Boolean
- property Flags as Integer
- property Name as String
- 12 methods
- method Constructor
- method Destructor
- method ResultBlob(data as MemoryBlock)
- method ResultBlob(data as ptr, size as Integer)
- method ResultBlob(text as string)
- method ResultDouble(value as Double)
- method ResultError(ErrorMessage as string)
- method ResultErrorCode(ErrorCode as Integer)
- method ResultInteger(value as Integer)
- method ResultNull
- method ResultText(text as string)
- method ResultZeroBlob(Length as Integer)
- 4 constants
Flags
Constant | Value | Description |
---|---|---|
kFlagDeterministic | &h800 |
The function always gives the same output when the input parameters are the same. |
kFlagDirectOnly | &h80000 |
The function may only be invoked from top-level SQL, and cannot be used in VIEWs or TRIGGERs nor in schema structures. |
kFlagInnocuous | &h200000 |
The function is unlikely to cause problems even if misused. An innocuous function should have no side effects and should not depend on any values other than its input parameters. |
kFlagUTF8 | 1 |
Specifies text encoding to be UTF-8. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- 15th birthday of MBS SQL Plugin
- News from the MBS Xojo Plugins Version 24.1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.1
- Did you know that you can load extensions in SQLite?
- MBS Xojo Plugins, version 24.1pr1
Release notes
- Version 24.1
- Added SQLiteFunctionMBS class to add custom SQLite functions for SQLite database connections.
The items on this page are in the following plugins: MBS SQL Plugin.