uxar 0.1.5

Opinionated Rust web framework built on Axum for Postgres-backed JSON APIs
Documentation

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;

/// Start a SELECT query against `table`.
pub fn select(table: &str) -> SelectQuery {
    SelectQuery::new(table)
}

/// Start an INSERT INTO `table` query.
pub fn insert(table: &str) -> InsertQuery {
    InsertQuery::new(table)
}

/// Start an UPDATE `table` query.
pub fn update(table: &str) -> UpdateQuery {
    UpdateQuery::new(table)
}

/// Start a DELETE FROM `table` query.
pub fn delete(table: &str) -> DeleteQuery {
    DeleteQuery::new(table)
}