Struct good_ormning::sqlite::schema::field::FieldBuilder
source · pub struct FieldBuilder { /* private fields */ }Implementations§
source§impl FieldBuilder
impl FieldBuilder
sourcepub fn opt(self) -> FieldBuilder
pub fn opt(self) -> FieldBuilder
Make the field optional.
sourcepub fn migrate_fill(self, expr: Expr) -> FieldBuilder
pub fn migrate_fill(self, expr: Expr) -> FieldBuilder
Specify an expression to use to populate the new column in existing rows. This is must be specified (only) for non-opt fields in a new version of an existing table.
sourcepub fn custom(self, type_: impl ToString) -> FieldBuilder
pub fn custom(self, type_: impl ToString) -> FieldBuilder
Use a custom Rust type for this field. This must be the full path to the type, like
crate::abcdef::MyType.