Literal

sealed class Literal<T>(type: KQLiteType, value: Any) : KQLiteColumn<T>

Represents a literal value in a KQLite query.

This sealed class is the base for all literal types, such as IntLiteral, StringLiteral, and DoubleLiteral. It encapsulates a specific value and its corresponding KQLite data type. Literals are used to represent constant values in expressions, comparisons, and insert/update statements.

Literals can also be used in place of KQLiteColumn.

Example

select(IntLiteral(1) + IntLiteral(2)).execute()

Author

MOHAMMAD AZIM ANSARI

Type Parameters

T

The Kotlin type of the literal value.

Inheritors

Constructors

Link copied to clipboard
protected constructor(type: KQLiteType, value: Any)

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the column.