text Column
Defines a nullable TEXT column in the table, intended to store a String.
This function creates and registers a column with the SQL type TEXT, which is used for storing character strings of variable length. The column is nullable by default. It is functionally equivalent to stringColumn.
Example:
object Documents : KQLiteTable("documents") {
// A nullable TEXT column for the document's content
val content = textColumn("content")
// A non-null column with a default value
val title = textColumn("title").notNull().default("Untitled")
}Content copied to clipboard
Return
A KQLiteColumn instance representing the TEXT column, which can be further chained with constraints like notNull(), unique(), default(), etc.
Author
MOHAMMAD AZIM ANSARI
Parameters
name
The name of the column in the database.