Table

data class Table(var name: String, var columns: List<Column>, var indexes: List<Index> = listOf(), var options: TableOptions = TableOptions(), viewNameOverride: String? = null) : BaseTable(source)

A single table in the schema.

Constructors

Link copied to clipboard
constructor(name: String, columns: List<Column>, indexes: List<Index> = listOf(), options: TableOptions = TableOptions(), viewNameOverride: String? = null)
constructor(name: String, columns: List<Column>, indexes: List<Index> = listOf(), localOnly: Boolean = false, insertOnly: Boolean = false, viewNameOverride: String? = null, trackMetadata: Boolean = false, trackPreviousValues: TrackPreviousValuesOptions? = null, ignoreEmptyUpdates: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

List of columns.

Link copied to clipboard

List of indexes.

Link copied to clipboard
open override var name: String

The synced table name, matching sync rules.

Link copied to clipboard

Common options for this table.

Link copied to clipboard

Whether this table name is valid.

Link copied to clipboard

Name for the view, used for queries. Defaults to the synced table name.

Functions

Link copied to clipboard
operator fun get(columnName: String): Column
Link copied to clipboard
open override fun validate()

Check that there are no issues in the table definition.