DatabaseTable

interface DatabaseTable

Database Table that defines the columns and the primary key. Currently foreign keys are not supported. Only single primary key is supported.

Inheritors

Properties

Link copied to clipboard
abstract val columns: Map<String, String>

Columns other than primary keys. Key would be column name and value would be type. For example, mapOf("data" to "TEXT")

Link copied to clipboard
abstract val primaryKey: Pair<String, String>

A primary key for the database

Link copied to clipboard
abstract val tableName: String

Name of database table.