Struct good_ormning::pg::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
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