Skip to main content

MySqlFamily

Trait MySqlFamily 

Source
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§

Source

fn mysql(b: &Builder<Self>) -> &MySqlState

The MySQL state.

Source

fn mysql_mut(b: &mut Builder<Self>) -> &mut MySqlState

The MySQL state, mutable.

Provided Methods§

Source

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".

Implementors§