Database
@Serializable
A database table or query. Numeric columns are read into datasets.
WIDE layout (the default): each numeric column becomes a dataset (filtered to datasetColumns, in order, when given).
LONG layout: rows are grouped by idColumn (first-seen order) into one dataset each, with valueColumn supplying the numeric values; both must be set.
Embedded databases (SQLite, Derby) need no credentials; server databases and credential resolution land in a later phase.
Constructors
Link copied to clipboard
constructor(connection: DatabaseConnectionRef, source: DbSource, layout: DatasetLayout = DatasetLayout.WIDE, idColumn: String? = null, valueColumn: String? = null, datasetColumns: List<String>? = null)