Table

class Table(val name: String, val database: Database)

Constructors

Link copied to clipboard
constructor(name: String, database: Database)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addData(type: TableData, name: String, vararg flags: TableFlag): Table
Link copied to clipboard
fun delete(builder: QueryBuilder.() -> Unit)

Deletes data from the table based on the given condition.

Link copied to clipboard
fun deleteSync(builder: QueryBuilder.() -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun has(builder: QueryBuilder.() -> Unit): Boolean

Checks if the table contains data that matches the given query.

Link copied to clipboard
fun insert(builder: InsertBuilder.() -> Unit)

Insert data into the table.

Link copied to clipboard
fun insertSync(builder: InsertBuilder.() -> Unit)
Link copied to clipboard
fun select(builder: QueryBuilder.() -> Unit): List<Map<String, Any?>>

Select data from the table.

Link copied to clipboard
Link copied to clipboard
fun selectAsync(builder: QueryBuilder.() -> Unit, onComplete: (List<Map<String, Any?>>) -> Unit, onError: (Throwable) -> Unit = { it.printStackTrace() })

Performs an asynchronous SELECT query on this table.

Link copied to clipboard
fun update(builder: UpdateBuilder.() -> Unit)

Updates data in the table.

Link copied to clipboard
fun updateSync(builder: UpdateBuilder.() -> Unit)