Trait dml_tools::sql::TypeWriter

source ·
pub trait TypeWriter {
    // Required methods
    fn id(&self) -> &str;
    fn field_type(&self, field_type: &FieldType) -> String;

    // Provided methods
    fn schema(&self, op: &ObjectPath) -> String { ... }
    fn index_type(&self) -> String { ... }
    fn supports_schemas(&self) -> bool { ... }
    fn supports_permissions(&self) -> bool { ... }
}
Expand description

Trait for a type that can convert a FieldType to String

Required Methods§

source

fn id(&self) -> &str

source

fn field_type(&self, field_type: &FieldType) -> String

Provided Methods§

Implementors§