integer Column
Defines a nullable INTEGER column in the table.
This function creates and registers a column with the SQL type INTEGER, which is used to store 64-bit signed integers (Long in Kotlin). The column is nullable by default.
Example:
object Users : KQLiteTable("users") {
// Create a nullable INTEGER column
val timestamp = integerColumn("created_at")
// A non-null column with a default value
val score = integerColumn("user_score").notNull().default(0L)
}Content copied to clipboard
Return
A KQLiteColumn instance representing the INTEGER column, which can be further chained with constraints like notNull(), primaryKey(), etc.
Author
MOHAMMAD AZIM ANSARI
Parameters
name
The name of the column in the database.