pub trait MySqlFamily: SqlDialect {
// Required methods
fn mysql(b: &Builder<Self>) -> &MySqlState;
fn mysql_mut(b: &mut Builder<Self>) -> &mut MySqlState;
// Provided method
fn geom_from_text(srid: i64) -> String { ... }
}Expand description
What MySQL and MariaDB share: their state, and the geometry constructor.
Required Methods§
Sourcefn mysql(b: &Builder<Self>) -> &MySqlState
fn mysql(b: &Builder<Self>) -> &MySqlState
The MySQL state.
Sourcefn mysql_mut(b: &mut Builder<Self>) -> &mut MySqlState
fn mysql_mut(b: &mut Builder<Self>) -> &mut MySqlState
The MySQL state, mutable.
Provided Methods§
Sourcefn geom_from_text(srid: i64) -> String
fn geom_from_text(srid: i64) -> String
ST_GeomFromText(?, srid, 'axis-order=long-lat') (MariaDB has no axis order).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".