Struct good_ormning::sqlite::Table
source · pub struct Table(pub TableId);Tuple Fields§
§0: TableIdImplementations§
source§impl Table
impl Table
sourcepub fn field(
&self,
v: &mut Version,
id: impl ToString,
name: impl ToString,
type_: FieldType
) -> Field
pub fn field(
&self,
v: &mut Version,
id: impl ToString,
name: impl ToString,
type_: FieldType
) -> Field
Define a field
pub fn rowid_field(&self, v: &mut Version, custom_type: Option<String>) -> Field
sourcepub fn constraint(&self, v: &mut Version, id: &str, type_: ConstraintType)
pub fn constraint(&self, v: &mut Version, id: &str, type_: ConstraintType)
Define a constraint
sourcepub fn index(&self, id: impl ToString, fields: &[&Field]) -> IndexBuilder
pub fn index(&self, id: impl ToString, fields: &[&Field]) -> IndexBuilder
Define an index