blob Column
Defines a nullable BLOB column in the table, intended to store a ByteArray.
This function creates and registers a column with the SQL type BLOB (Binary Large Object), which is used for storing raw binary data, such as images, files, or serialized objects. The column is nullable by default. It is functionally equivalent to byteArrayColumn.
Example:
object UserAvatars : KQLiteTable("user_avatars") {
// A nullable BLOB column to store a user's profile picture
val avatar = blobColumn("avatar_image")
// A non-null column for storing a small thumbnail
val thumbnail = blobColumn("thumbnail").notNull()
}Content copied to clipboard
Return
A KQLiteColumn instance representing the BLOB column, which can be further chained with constraints like notNull().
Author
MOHAMMAD AZIM ANSARI
Parameters
name
The name of the column in the database.