Skip to main content

Crate sntl

Crate sntl 

Source
Expand description

§Sentinel ORM

Compile-time guarded ORM for PostgreSQL.

[dependencies]
sntl = "0.1"
use sntl::prelude::*;

Re-exports§

pub use core::error::Error;
pub use core::error::Result;
pub use driver;

Modules§

core
Core — Model trait, QueryBuilder, types, and connection abstraction. Sentinel Core — Model trait, QueryBuilder, types, and connection abstraction.
migrate
Migration tools — schema diff and migration generation. Sentinel Migrate — Schema diff and migration generation. Phase 1: Stub module, implementation in later phase.
prelude
Prelude — common imports for quick setup.

Derive Macros§

Model
Derive macros — #[derive(Model)], #[derive(Partial)]. Derive the Model trait for a struct.
Partial
Derive a partial select type.