mod executor;
mod interfaces;
mod commons;
mod argvalue;
mod scopes;
mod placeholders;
pub(crate) mod queries;
pub mod mock;
pub use commons::{Database, Arguments, Row, QueryResult, Pool};
pub use argvalue::ArgValue;
pub use scopes::Scope;
pub use queries::{Statement, Page, LockMode, FilteredBuilder, QueryError};
pub use queries::{SelectQuery, InsertQuery, UpdateQuery, DeleteQuery};
pub use uxar_macros::{Filterable, Scannable, Bindable};
pub use executor::*;
pub use interfaces::{
Filterable, Recordable, Scannable, Bindable, Model,
rust_to_pg_type,
};
pub use sqlx::test as test_db;
pub fn select(table: &str) -> SelectQuery {
SelectQuery::new(table)
}
pub fn insert(table: &str) -> InsertQuery {
InsertQuery::new(table)
}
pub fn update(table: &str) -> UpdateQuery {
UpdateQuery::new(table)
}
pub fn delete(table: &str) -> DeleteQuery {
DeleteQuery::new(table)
}