starmap/schema
Types
pub type Column(datatype, value) {
Column(
table: String,
name: String,
column_type: ColumnType(datatype, value),
arguments: List(ColumnArguments),
)
}
Constructors
-
Column( table: String, name: String, column_type: ColumnType(datatype, value), arguments: List(ColumnArguments), )
pub type ColumnArguments {
PrimaryKey
ForeignKey(ref_table: String, ref_column: String)
Custom(s: String)
}
Constructors
-
PrimaryKey
-
ForeignKey(ref_table: String, ref_column: String)
-
Custom(s: String)
pub type ColumnType(datatype, value) {
ColumnType(
name: String,
nullable: Bool,
encoding: Encoding(datatype, value),
)
}
Constructors
-
ColumnType( name: String, nullable: Bool, encoding: Encoding(datatype, value), )