mod argvalue;
mod commons;
mod executor;
mod interfaces;
mod placeholders;
pub(crate) mod queries;
mod scopes;
pub mod mock;
pub use argvalue::ArgValue;
pub use commons::{Arguments, Database, Pool, QueryResult, Row};
pub use executor::*;
pub use interfaces::{Bindable, Model, Scannable};
pub use queries::{DeleteQuery, InsertQuery, SelectQuery, UpdateQuery};
pub use queries::{FilteredBuilder, LockMode, Page, QueryError, Statement};
pub use scopes::Scope;
pub use sqlx::test as test_db;
pub use vyuh_macros::{Bindable, Scannable};
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)
}