u Long Column
Defines a nullable INTEGER column in the table, intended to store an unsigned 64-bit integer (ULong).
This function creates and registers a column with the type INTEGER if it is declared as primaryKey otherwise it will register with the type BIGINT UNSIGNED.
This function maps to Kotlin's ULong and values larger than Long.MAX_VALUE may overflow. The column is nullable by default.
Important: ULong values are stored as Long which might overflow and display as negative integer in database. KQLite reads Long and converts it to ULong using the method Long.toULong. Avoid positive values check on this column.
Example:
object Counters : KQLiteTable("counters") {
// A nullable INTEGER column for a very large, non-negative counter
val eventCount = uLongColumn("event_count").primaryKey()
// A non-null column with a default value
val views = uLongColumn("view_count").notNull().default(0uL)
}Return
A KQLiteColumn instance representing the INTEGER column, which can be further chained with constraints like notNull(), primaryKey(), etc.
Author
MOHAMMAD AZIM ANSARI
Parameters
The name of the column in the database.