use crate::sql_types::*;
use diesel::sql_types::*;
sql_function! {
#[sql_name="ST_3DIntersects"]
fn st_3d_intersects(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_Contains"]
fn st_contains(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_ContainsProperly"]
fn st_contains_properly(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_CoveredBy"]
fn st_covered_by<G: GeoType>(left: G, right: G) -> Bool;
}
sql_function! {
#[sql_name="ST_Covers"]
fn st_covers<G: GeoType>(left: G, right: G) -> Bool;
}
sql_function! {
#[sql_name="ST_Crosses"]
fn st_crosses(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_Disjoint"]
fn st_disjoint(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_Equals"]
fn st_equals(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_Intersects"]
fn st_intersects<G: GeoType>(left: G, right: G) -> Bool;
}
sql_function! {
#[sql_name="ST_LineCrossingDirection"]
fn st_line_crossing_direction(left: Geometry, right: Geometry) -> Integer;
}
sql_function! {
#[sql_name="ST_OrderingEquals"]
fn st_ordering_equals(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_Overlaps"]
fn st_overlaps(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_Relate"]
fn st_relate_check(left: Geometry, right: Geometry, intersection_matrix_mattern: Text) -> Bool;
}
sql_function! {
#[sql_name="ST_Relate"]
fn st_relate(left: Geometry, right: Geometry) -> Text;
}
sql_function! {
#[sql_name="ST_Relate"]
fn st_relate_bnr(left: Geometry, right: Geometry, boundary_node_rule: Integer) -> Text;
}
sql_function! {
#[sql_name="ST_RelateMatch"]
fn st_relate_match(intersection_matrix: Text, intersection_matrix_pattern: Text) -> Bool;
}
sql_function! {
#[sql_name="ST_Touches"]
fn st_touches(left: Geometry, right: Geometry) -> Bool;
}
sql_function! {
#[sql_name="ST_Within"]
fn st_within(left: Geometry, right: Geometry) -> Bool;
}
pub type St3DIntersects<GeomA, GeomB> = st_3d_intersects::HelperType<GeomA, GeomB>;
pub type StContains<GeomA, GeomB> = st_contains::HelperType<GeomA, GeomB>;
pub type StContainsProperly<GeomA, GeomB> = st_contains_properly::HelperType<GeomA, GeomB>;
pub type StCoveredBy<G, GeomA, GeomB> = st_covered_by::HelperType<G, GeomA, GeomB>;
pub type StCovers<G, GeomA, GeomB> = st_covers::HelperType<G, GeomA, GeomB>;
pub type StCrosses<GeomA, GeomB> = st_crosses::HelperType<GeomA, GeomB>;
pub type StDisjoint<GeomA, GeomB> = st_disjoint::HelperType<GeomA, GeomB>;
pub type StEquals<GeomA, GeomB> = st_equals::HelperType<GeomA, GeomB>;
pub type StIntersects<G, GeomA, GeomB> = st_intersects::HelperType<G, GeomA, GeomB>;
pub type StLineCrossingDirection<GeomA, GeomB> =
st_line_crossing_direction::HelperType<GeomA, GeomB>;
pub type StOrderingEquals<GeomA, GeomB> = st_ordering_equals::HelperType<GeomA, GeomB>;
pub type StOverlaps<GeomA, GeomB> = st_overlaps::HelperType<GeomA, GeomB>;
pub type StRelateCheck<GeomA, GeomB, Matrix> = st_relate_check::HelperType<GeomA, GeomB, Matrix>;
pub type StRelate<GeomA, GeomB> = st_relate::HelperType<GeomA, GeomB>;
pub type StRelateBnr<GeomA, GeomB, BNRule> = st_relate_bnr::HelperType<GeomA, GeomB, BNRule>;
pub type StRelateMatch<GeomA, GeomB> = st_relate_match::HelperType<GeomA, GeomB>;
pub type StTouches<GeomA, GeomB> = st_touches::HelperType<GeomA, GeomB>;
pub type StWithin<GeomA, GeomB> = st_within::HelperType<GeomA, GeomB>;