Companion

Provides access to SQLite APIs that do not require SQLite initialization.

Properties

Link copied to clipboard

Comparator for UTF-8 strings that compares them case-independently, using the same definition of case independence SQLite uses internally when comparing identifiers.

Link copied to clipboard
open override val compileOptions: List<String>

Options SQLite was compiled with, each with its SQLITE_ prefix omitted.

Link copied to clipboard
open override val isThreadSafe: Boolean

Whether this SQLite build has mutexing code omitted because the SQLITE_THREADSAFE compile-time option was set to 0. When true, this library and its host application must not use SQLite from more than one thread at a time.

Link copied to clipboard
open override val keywordCount: Int

Number of distinct keywords SQLite understands.

Link copied to clipboard
open override val multipleCiphersVersion: String

Version of SQLite Multiple Ciphers.

Link copied to clipboard
open override val sourceId: String

Identifier of the check-in this SQLite build was produced from in its source control system.

Link copied to clipboard
open override val version: String

SQLite version, for example 3.45.0.

Link copied to clipboard
open override val versionNumber: Int

SQLite version encoded as a single integer, for example 3045000 for version 3.45.0.

Functions

Link copied to clipboard
open override fun createCaseIndependentComparator(maxBytes: Int): Comparator<String>

Returns a comparator for UTF-8 strings that compares them case-independently, the same way caseIndependentComparator does, but only looking at the first maxBytes bytes.

Link copied to clipboard
open override fun getKeyword(index: Int): String

Returns the keyword at index, out of the keywordCount keywords SQLite understands.

Link copied to clipboard
fun initialize(configure: ConfigurationScope.() -> Unit? = null): SQLite

Initializes SQLite and returns an SQLite instance used to initiate connections. SQLite global options can be configured by supplying a value to configure.

Link copied to clipboard
open override fun isCompleteSqlStatement(sql: String): Boolean

Returns true if sql looks like a complete SQL statement, or false if more input would be needed before SQLite could parse it. Whitespace and comments after the final statement do not count as needing more input.

Link copied to clipboard
open override fun isKeyword(word: String): Boolean

Returns whether word is an SQLite keyword.

Link copied to clipboard
open override fun log(errorCode: Int, message: String)

Sends message through SQLite's logging mechanism, invoking the currently configured ksqlite.kapi.config.Logger, if any, with errorCode.

Link copied to clipboard
open override fun matchGlob(pattern: String, input: String): Boolean

Returns whether input matches the GLOB pattern.

Link copied to clipboard
open override fun matchLike(pattern: String, input: String, escape: Char): Boolean

Returns whether input matches the LIKE pattern, using escape as the escape character.