long Column
Defines a nullable INTEGER column in the table, intended to store a Long.
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. It is functionally equivalent to integerColumn.
Example:
object Events : KQLiteTable("events") {
// Create a nullable INTEGER column for a timestamp as milliseconds
val eventTime = longColumn("event_timestamp")
// Create a non-null, primary key column
val eventId = longColumn("event_id").primaryKey().autoIncrement()
}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.