Package-level declarations

Functions

Link copied to clipboard

Represents the SQLite ABS() function, which computes the absolute value of a numeric expression.

Link copied to clipboard

Represents SQLite ACOS() function. The input must be between -1.0 and 1.0.

Link copied to clipboard

Represents the SQLite ACOSH() function, which computes the inverse hyperbolic cosine. The input value must be greater than or equal to 1.0.

Link copied to clipboard

Represents the SQLite ASIN() function, which computes the arc sine. The input value must be between -1.0 and 1.0.

Link copied to clipboard

Represents the SQLite ASINH() function, which computes the inverse hyperbolic sine.

Link copied to clipboard

Represents the SQLite ATAN() function, which computes the arc tangent.

Link copied to clipboard

Represents the SQLite ATAN2(Y, X) function. It computes the arc tangent of Y/X but uses the signs of both Y and X to determine the quadrant of the result.

Link copied to clipboard

Represents the SQLite ATANH() function, which computes the inverse hyperbolic tangent. The input value must be between -1.0 and 1.0, exclusive.

Link copied to clipboard
fun <T> AVG(column: KQLiteColumn<T>, distinct: Boolean = false): KQLiteColumn<Double>

Represents the SQL AVG() aggregate function.

Link copied to clipboard
fun CAST(column: KQLiteColumn<*>, type: Int): KQLiteColumn<Any?>

Explicitly converts the data type of value from one type to another.

Link copied to clipboard

Represents the SQLite CEIL() or CEILING() function, which rounds a number up to the next highest integer.

Link copied to clipboard

An alias for the CEIL function. Represents the SQLite CEILING() function, which rounds a number up to the next highest integer.

Link copied to clipboard
fun CHAR(vararg chars: KQLiteColumn<in Int>): KQLiteColumn<String>

Constructs a string by interpreting the integer arguments as Unicode code points.

Link copied to clipboard
fun COALESCE(vararg columns: KQLiteColumn<*>): KQLiteColumn<String?>

Returns a copy of its first non-NULL argument, or NULL if all arguments are NULL.

Link copied to clipboard
fun CONCAT(vararg columns: KQLiteColumn<*>): KQLiteColumn<String>

Concatenates two or more strings or columns together.

Link copied to clipboard

Concatenates this column with another column. This is an infix version of the CONCAT function, corresponding to the SQLite || operator.

infix fun KQLiteColumn<*>.CONCAT(literal: String): KQLiteColumn<String>

Concatenates two or more strings or columns together. This function corresponds to the SQLite CONCAT or || operator.

Link copied to clipboard
fun CONCAT_WS(separator: String, vararg columns: KQLiteColumn<*>): KQLiteColumn<String?>

Concatenates two or more strings or columns with a specified separator.

Link copied to clipboard

Represents the SQLite COS() function, which computes the cosine of a value.

Link copied to clipboard

Represents the SQLite COSH() function, which computes the hyperbolic cosine.

Link copied to clipboard
fun COUNT(column: KQLiteColumn<*>? = null, distinct: Boolean = false): KQLiteColumn<Long>

Represents the SQL COUNT() aggregate function.

Link copied to clipboard
fun DATE(unixepoch: Long): KQLiteColumn<KQLiteDate>
fun DATE(year: Int, month: Int, day: Int): KQLiteColumn<KQLiteDate>

The DATE() function returns the date as text in this format: YYYY-MM-DD.

Link copied to clipboard

The DATETIME() function returns the date and time as text in this format: YYYY-MM-DD HH:MM:SS.

Link copied to clipboard

Represents the SQLite DEGREES() function, which converts a value from radians to degrees.

Link copied to clipboard

Represents the SQL DISTINCT keyword used as a function-like wrapper.

Link copied to clipboard

Represents the SQLite EXP() function, which computes e (Euler's number, approximately 2.71828) raised to the power of the input value.

Link copied to clipboard

Represents the SQLite FLOOR() function, which rounds a number down to the next lowest integer.

Link copied to clipboard
fun FORMAT(format: String, vararg columns: KQLiteColumn<*>): KQLiteColumn<String>

Formats a string using a format template and a variable number of arguments.

Link copied to clipboard
fun GROUP_CONCAT(column: KQLiteColumn<*>, separator: String? = null, distinct: Boolean = false): KQLiteColumn<String>

Represents the SQL GROUP_CONCAT() aggregate function.

Link copied to clipboard

Converts a value into a hexadecimal string representation.

Link copied to clipboard

Returns the value of its first argument if it is not NULL, otherwise returns the value of its second argument.

Link copied to clipboard
fun IIF(expression: KQLiteColumn<out Boolean?>, trueValue: KQLiteColumn<*>, falseValue: KQLiteColumn<*>): KQLiteColumn<String>

Evaluates a boolean expression and returns one of two values accordingly.

Link copied to clipboard

Finds the first occurrence of a substring within a string.

Link copied to clipboard

Interprets the value from the given column as JSON.

Interprets the given string as JSON.

Link copied to clipboard

Creates a new JSON array from a variable number of arguments.

Link copied to clipboard

Returns the number of elements in a JSON array.

Link copied to clipboard

Returns the 1-based index of the character where a syntax error occurred in malformed JSON.

Link copied to clipboard
fun JSON_EXTRACT(json: KQLiteColumn<out KQLiteJson?>, vararg path: String): KQLiteColumn<String?>

Extracts one or more values from a JSON string.

Link copied to clipboard

An aggregate function that returns a JSON array containing all values from the specified column within a group.

Link copied to clipboard

An aggregate function that returns a JSON object composed of key-value pairs from two specified columns within a group.

Link copied to clipboard
fun <T : KQLiteJson> JSON_INSERT(json: KQLiteColumn<T>, vararg pathValue: Pair<String, Any?>): KQLiteColumn<T>

Inserts one or more values into a JSON document at specified paths.

Link copied to clipboard

Creates a new JSON object from a variable number of name-value pairs.

Link copied to clipboard

Applies a JSON patch to a JSON document.

Link copied to clipboard

Formats a JSON string into a more human-readable, "pretty-printed" format.

Link copied to clipboard

Converts a SQL value into a JSON value.

Link copied to clipboard
fun <T : KQLiteJson> JSON_REMOVE(json: KQLiteColumn<T>, vararg path: String): KQLiteColumn<T>

Removes one or more elements from a JSON document at specified paths.

Link copied to clipboard
fun <T : KQLiteJson> JSON_REPLACE(json: KQLiteColumn<T>, vararg pathValue: Pair<String, Any?>): KQLiteColumn<T>

Replaces existing values in a JSON document at specified paths.

Link copied to clipboard
fun <T : KQLiteJson> JSON_SET(json: KQLiteColumn<T>, vararg pathValue: Pair<String, Any?>): KQLiteColumn<T>

Inserts or replaces values in a JSON document at specified paths.

Link copied to clipboard

Returns the "type" of a JSON value as a string.

Link copied to clipboard

Checks if a string is a well-formed JSON document.

Link copied to clipboard

Interprets the value from the given column as JSON and returns its binary representation (BLOB).

Interprets the given string as JSON and returns its binary representation (BLOB).

Link copied to clipboard

Similar to JSON_ARRAY but binary representation (BLOB).

Link copied to clipboard

Similar to JSON_EXTRACT but binary representation (BLOB).

Link copied to clipboard

Similar to JSON_GROUP_ARRAY but binary representation (BLOB).

Link copied to clipboard

Similar to JSON_GROUP_OBJECT but binary representation (BLOB).

Link copied to clipboard
fun <T : KQLiteJson> JSONB_INSERT(json: KQLiteColumn<T>, vararg pathValue: Pair<String, Any?>): KQLiteColumn<T>

Similar to JSON_INSERT but binary representation (BLOB).

Link copied to clipboard

Similar to JSON_OBJECT but binary representation (BLOB).

Link copied to clipboard

Similar to JSON_PATCH but binary representation (BLOB).

Link copied to clipboard
fun <T : KQLiteJson> JSONB_REMOVE(json: KQLiteColumn<T>, vararg path: String): KQLiteColumn<T>

Similar to JSON_REMOVE but binary representation (BLOB).

Link copied to clipboard
fun <T : KQLiteJson> JSONB_REPLACE(json: KQLiteColumn<T>, vararg pathValue: Pair<String, Any?>): KQLiteColumn<T>

Similar to JSON_REPLACE but binary representation (BLOB).

Link copied to clipboard
fun <T : KQLiteJson> JSONB_SET(json: KQLiteColumn<T>, vararg pathValue: Pair<String, Any?>): KQLiteColumn<T>

Similar to JSON_SET but binary representation (BLOB).

Link copied to clipboard

The JULIANDAY() function returns the Julian day number - the number of days since noon in Greenwich on November 24, 4714BC.

Link copied to clipboard

Returns the length of a value.

Link copied to clipboard

Represents the SQLite LN() function, which computes the natural logarithm (base-e) of a value.

Link copied to clipboard

Represents the SQLite LOG() function, which computes the logarithm of a number.

Link copied to clipboard

Represents the SQLite LOG10() function, which computes the base-10 logarithm of a number.

Link copied to clipboard

Represents the SQLite LOG2() function, which computes the base-2 logarithm of a number.

Link copied to clipboard

Converts a string to all lowercase letters.

Link copied to clipboard
fun LTRIM(column: KQLiteColumn<*>, trimChars: String? = null): KQLiteColumn<String>

Removes characters from the beginning (left side) of a string.

Link copied to clipboard
fun <T> MAX(vararg columns: KQLiteColumn<T>, distinct: Boolean = false): KQLiteColumn<T>

Represents the SQL MAX() aggregate or scalar function.

Link copied to clipboard
fun <T> MIN(vararg columns: KQLiteColumn<T>, distinct: Boolean = false): KQLiteColumn<T>

Represents the SQL MIN() aggregate or scalar function.

Link copied to clipboard

Represents the SQLite MOD(X, Y) function, which computes the floating-point remainder of the division of X by Y.

Link copied to clipboard

Returns NULL if the first argument is equal to the second argument, otherwise returns the first argument.

Link copied to clipboard

Returns the length of a value in bytes (octets).

Link copied to clipboard

Represents the SQLite POW(X, Y) function, which computes X raised to the power of Y.

Link copied to clipboard

Represents the SQLite POWER(X, Y) function, which computes X raised to the power of Y.

Link copied to clipboard
fun PRINTF(format: String, vararg columns: KQLiteColumn<*>): KQLiteColumn<String>

Formats a string using a C-style printf() format string.

Link copied to clipboard

Wraps a value in a format suitable for inclusion in an SQL statement.

Link copied to clipboard

Represents the SQLite RADIANS() function, which converts a value from degrees to radians.

Link copied to clipboard

Represents the SQLite RANDOM() function.

Link copied to clipboard

Represents the SQLite randomblob(N) function.

Link copied to clipboard
fun REPLACE(column: KQLiteColumn<*>, oldValue: String, newValue: String): KQLiteColumn<String>

Replaces all occurrences of a specified substring with another substring.

Link copied to clipboard
fun <T : Number?> ROUND(column: KQLiteColumn<T>, digits: Int? = null): KQLiteColumn<T>

Represents the SQLite ROUND() function, which rounds a numeric value.

Link copied to clipboard
fun RTRIM(column: KQLiteColumn<*>, trimChars: String? = null): KQLiteColumn<String>

Removes characters from the end (right side) of a string.

Link copied to clipboard

Represents the SQLite SIGN() function, which returns the sign of a numeric value.

Link copied to clipboard

Represents the SQLite SIN() function, which computes the sine of a value.

Link copied to clipboard

Represents the SQLite SINH() function, which computes the hyperbolic sine.

Link copied to clipboard

Computes the Soundex code of a string.

Link copied to clipboard

Represents the SQLite SQRT() function, which computes the square root of a number.

Link copied to clipboard

The STRFTIME() function returns a string representing the date and time, formatted according to the format string. The optional second argument is a time string, which defaults to 'now' if omitted.

Link copied to clipboard
fun STRING_AGG(column: KQLiteColumn<*>, separator: String, distinct: Boolean = false): KQLiteColumn<String>

Represents the SQL STRING_AGG() aggregate function.

Link copied to clipboard
fun SUBSTR(column: KQLiteColumn<*>, start: Int, length: Int? = null): KQLiteColumn<String?>

Extracts a substring from a string.

Link copied to clipboard
fun SUBSTRING(column: KQLiteColumn<*>, start: Int, length: Int? = null): KQLiteColumn<String>

Extracts a substring from a string. This is an alias for the SUBSTR function.

Link copied to clipboard
fun <T : Number?> SUM(column: KQLiteColumn<T>, distinct: Boolean = false): KQLiteColumn<T>

Represents the SQL SUM() aggregate function.

Link copied to clipboard

Represents the SQLite TAN() function, which computes the tangent of a value.

Link copied to clipboard

Represents the SQLite TANH() function, which computes the hyperbolic tangent.

Link copied to clipboard
fun TIME(unixepoch: Long): KQLiteColumn<KQLiteTime>
fun TIME(hour: Int, minute: Int, second: Int? = null, subsecond: Int? = null): KQLiteColumn<KQLiteTime>

The TIME() function returns the time as text in this format: HH:MM:SS.

Link copied to clipboard

The TIMEDIFF() function computes the time difference between two date/time values. It returns the result as a time string in the format (+|-)YYYY-MM-DD HH:MM:SS.SSS.

Link copied to clipboard
fun <T : Number?> TOTAL(column: KQLiteColumn<T>, distinct: Boolean = false): KQLiteColumn<T>

Represents the SQL TOTAL() aggregate function.

Link copied to clipboard
fun TRIM(column: KQLiteColumn<*>, trimChars: String? = null): KQLiteColumn<String>

Removes characters from the beginning and end of a string.

Link copied to clipboard

Represents the SQLite TRUNC() function, which truncates a numeric value by removing its fractional part, effectively rounding it towards zero.

Link copied to clipboard

Determines the data type of value.

Link copied to clipboard

Converts a hexadecimal string into its raw byte representation (as a BLOB).

Link copied to clipboard

Returns the Unicode code point of the first character of a string.

Link copied to clipboard

Interprets \XXXX escape sequences within a string.

Link copied to clipboard

Interprets escape sequences in a string and then quotes it.

Link copied to clipboard

The UNIXEPOCH() function returns the Unix epoch timestamp - the number of seconds since 1970-01-01 00:00:00 UTC.

Link copied to clipboard

Converts a string to all uppercase letters.

Link copied to clipboard

Represents the SQLite zeroblob(N) function.