DatabaseManager

Functions

Link copied to clipboard
abstract fun clear(tableName: String): Boolean

Clear the table.

Link copied to clipboard
abstract fun createTable(table: DatabaseTable): Boolean

Create Table based on the primary keys and other keys defined.

Link copied to clipboard
abstract fun delete(tableName: String, keyName: String, ids: List<String>): Int

Delete items based on the table name, given primary key, and values.

Link copied to clipboard
abstract fun dropTable(tableName: String): Boolean

Drop/Delete Table based on given table name

Link copied to clipboard
abstract fun insert(tableName: String, contentValues: List<ContentValues>): Boolean

Insert a list of items into the table.

Link copied to clipboard
abstract fun query(tableName: String, size: Int? = 1000): List<Map<String, Any?>>

Query table based on size. Since the order is not specified, it will most likely get based on insertion order.