compileOptionUsed



Determines if the named compile-time option was used during the build of ooSQLite.

Arguments: The single argument is:
name [required] The name of the SQLite compile-time option to check. TheSQLITE_prefix may be omitted. I.e.,SQLITE_THREADSAFEandTHREADSAFEwill produce the same result.
Return value: Returns true if the name option was used, otherwise false.
Remarks: For most purposes, SQLite can be built just fine using the default compilation options. However, if required, compile-time options can be used to omit SQLite features (resulting in a smaller compiled library size) or to change the default values of some parameters. ooSQLite is built using just a few compile-time options.
Details The functionality of thecompileOptionUsedmethod is similar to that of the SQLite sqlite3_compileoption_used API.
Example: This example checks several random compile-time options and displays if they were defined at compile time.
names = .array~of('DEFAULT_AUTOVACUUM', 'THREADSAFE', 'TEMP_STORE', -
'4_BYTE_ALIGNED_MALLOC', 'CURDIR', 'SQLITE_THREADSAFE')
do i = 1 to names~items
say 'Option' names[i] ':' .ooSQLite~compileOptionUsed(names[i])
end
/* Output might be:
Option DEFAULT_AUTOVACUUM : 0
Option THREADSAFE : 1
Option TEMP_STORE : 1
Option 4_BYTE_ALIGNED_MALLOC : 0
Option CURDIR : 1
Option SQLITE_THREADSAFE : 1
*/