Crate atmosphere_core

Source
Expand description

§🌍 Atmosphere

A lightweight sql framework for sustainable database reliant systems

§Overview

Atmosphere is a lightweight SQL framework designed for sustainable, database-reliant systems. It leverages Rust’s powerful type and macro systems to derive SQL schemas from your rust struct definitions into an advanced trait system.

Atmosphere provides a suite of modules and types that abstract and facilitate various aspects of database operations, from query construction and execution to error handling and schema management.

§Key Features

  • SQL schema derivation from Rust structs.
  • Advanced trait system for query generation.
  • Automated database code testing with atmosphere::testing
  • ORM-like CRUD traits.
  • Code reusability across API layers using generics.
  • Compile-time introspection for type-safe schema generation.

Re-exports§

pub use driver::Driver;
pub use driver::Pool;
pub use bind::*;
pub use error::*;
pub use schema::*;

Modules§

bind
Facilitates binding entities to queries, ensuring type safety and ease of use in query construction. Bind Module for Atmosphere SQL Framework
driver
Driver System
error
Defines high-level database error types, offering a structured approach to error handling. Error Handling Module for Atmosphere
hooks
Implements a hook system, allowing custom logic to be executed at different stages of database interactions. Atmosphere Hook System
query
Offers an abstraction layer for building and executing SQL queries, simplifying complex query logic. Provides structures and enums for handling and executing SQL queries, along with error handling.
rel
Models SQL relationships, providing tools to define and manipulate relationships between database entities. Provides traits for managing relationships between database entities.
runtime
Manages the runtime environment for database operations, encompassing execution contexts and configurations. Runtime Module for Atmosphere SQL Framework
schema
Contains compile-time generated SQL schema traits, enabling a declarative approach to schema definition. SQL Schema
testing
Provides utilities for automated testing of SQL interactions, ensuring reliability and correctness of database operations. Provides functions for automated database testing.