use sqlx_core::database::{Database, HasStatementCache};
use crate::{
SpgArgumentValue, SpgArguments, SpgColumn, SpgConnection, SpgQueryResult, SpgRow, SpgStatement,
SpgTransactionManager, SpgTypeInfo, SpgValue, SpgValueRef,
};
#[derive(Debug)]
pub struct Spg;
impl Database for Spg {
type Connection = SpgConnection;
type TransactionManager = SpgTransactionManager;
type Row = SpgRow;
type QueryResult = SpgQueryResult;
type Column = SpgColumn;
type TypeInfo = SpgTypeInfo;
type Value = SpgValue;
type ValueRef<'r> = SpgValueRef<'r>;
type Arguments<'q> = SpgArguments<'q>;
type ArgumentBuffer<'q> = Vec<SpgArgumentValue<'q>>;
type Statement<'q> = SpgStatement<'q>;
const NAME: &'static str = "SPG";
const URL_SCHEMES: &'static [&'static str] = &["spg"];
}
impl HasStatementCache for Spg {}