Table<'row> Type
Schema metadata for a single SQLite table or view, paired with the codec functions that
translate between rows of type
Instances are typically obtained from the Repository module rather than constructed directly. The repository's CRUD façades use Name, Columns and PrimaryKey to synthesise SQL, and use OfRow / ToParameters to marshal values across the ISqliteDriver boundary.
Constructors
| Constructor |
Description
|
Full Usage:
Table(Name, Columns, PrimaryKey, OfRow, ToParameters)
Parameters:
string
Columns : string[]
PrimaryKey : string[]
OfRow : SqlRow -> 'row
ToParameters : 'row -> SqlParameters
Returns: Table<'row>
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Columns
Returns: string[]
|
Ordered column names.
|
Full Usage:
this.Name
Returns: string
|
SQL table or view name.
|
|
Row decoder.
|
Full Usage:
this.PrimaryKey
Returns: string[]
|
Ordered primary-key column names.
|
|
Row encoder.
|
Static members
| Static member |
Description
|
Full Usage:
Table.create (Name, Columns, PrimaryKey, OfRow, ToParameters)
Parameters:
string
Columns : string[]
PrimaryKey : string[]
OfRow : SqlRow -> 'row
ToParameters : 'row -> SqlParameters
Returns: Table<'row>
|
Named-argument constructor exposed to JavaScript and Python callers.
|
ProcessCore