Expand description
Ignis: A comprehensive PostgreSQL ORM with macro-driven schema management
This crate provides compile-time type safety with sqlx execution, comprehensive macro system, and sophisticated migration management.
Re-exports§
pub use connection::ConnectionManager;pub use connection::PoolStats;pub use database::Database;pub use database::DatabaseConfig;pub use database::DatabaseType;pub use database::MySQL;pub use database::PostgreSQL;pub use dsl::call_function;pub use dsl::call_procedure;pub use dsl::Column as DslColumn;pub use dsl::CompositeField;pub use dsl::CompositeFieldBuilder;pub use dsl::CompositeFieldRef;pub use dsl::FunctionCall;pub use dsl::ProcedureCall;pub use dsl::Query;pub use dsl::Source;pub use exec::transaction::execute_transaction;pub use exec::transaction::IsolationLevel;pub use exec::transaction::TransactionConfig;pub use exec::transaction::TransactionManager;pub use schema::Column;pub use schema::ColumnType;pub use schema::CompositeField as SchemaCompositeField;pub use schema::CompositeType;pub use schema::IndexMeta;pub use schema::IndexType;pub use schema::StoredFunction;pub use schema::StoredProcedure;pub use schema::Table;pub use schema::TableMeta;pub use schema::Trigger;pub use schema::TriggerEvent;pub use schema::TriggerOrientation;pub use schema::TriggerTiming;pub use macros::parameter_binding::BindValue;
Modules§
- builders
- Builder Pattern Module for Ignis-DB
- code_
parsing - Code parsing module for extracting table! macro definitions from Rust code
- codegen
- common
- Common utilities for SQL name generation and other shared functionality
- config
- Configuration Management for Ignis-DB
- connection
- Connection Management for Ignis-DB
- database
- Multi-platform database abstraction layer
- dsl
- Domain Specific Language for building type-safe database queries
- exec
- Execution and Transaction Management
- introspection
- macros
- Macro system for Ignis
- migrate
- Migration system for Ignis
- schema
- Schema definitions for Ignis
Macros§
- anyhow
- Construct an ad-hoc error from a string or existing non-
anyhowerror value. - auto_
projection - Macro to automatically implement AutoProjection
- build_
column - Macro to create a column
- build_
constraint - Macro to create a constraint
- build_
extension - Macro to create an extension
- build_
function - Macro to create a function with a schema-qualified name
- build_
guc - Macro to create a GUC setting
- build_
index - Macro to create an index
- build_
materialized_ view - Macro to create a materialized view with a schema-qualified name
- build_
policy - Macro to create a policy
- build_
procedure - Macro to create a procedure with a schema-qualified name
- build_
role - Macro to create a role
- build_
schema - Macro to create a schema
- build_
table - Macro to create a table with a schema-qualified name
- build_
view - Macro to create a view with a schema-qualified name
- column_
type_ mapping - Shared column type mappings to eliminate duplication
- composite
- Macro for defining PostgreSQL composite types
- composite_
field - Macro for creating composite field expressions
- event
- Event macro for pg_cron scheduled jobs
- function
- Macro for defining PostgreSQL stored functions
- grant
- Grant definition macro
- impl_
builder_ crud - Macro to implement all CRUD traits at once
- impl_
builder_ deletable - Macro to automatically implement Deletable trait for a struct
- impl_
builder_ insertable - Macro to automatically implement Insertable trait for a struct
- impl_
builder_ model - Macro to automatically implement IgnisModel trait for a struct using builder information
- impl_
builder_ updatable - Macro to automatically implement Updatable trait for a struct
- impl_
deletable - Macro to implement Deletable trait for a struct
- impl_
ignis_ model - Macro to implement IgnisModel trait for a struct
- impl_
insertable - Macro to implement Insertable trait for a struct
- impl_
updatable - Macro to implement Updatable trait for a struct
- index
- Enhanced macro for creating database indexes with composite type support
- info_
schema - Macro to create an information schema query
- procedure
- Macro for defining PostgreSQL stored procedures
- projection_
target - Macro to automatically implement ProjectionTarget
- role
- Role definition macro
- rust_
type_ mapping - Shared Rust type mappings
- safe_
sql - Macro for safely building SQL statements
- select_
anonymous - Macro for anonymous projections (like C# anonymous objects)
- sql_
type_ mapping - Shared SQL type mappings for DDL
- table
- Macro for defining database tables
- trigger
- Macro for defining PostgreSQL triggers
- view
- Macro for defining database views
Structs§
- Registered
Object - Wrapper type for inventory registration
- Schema
Object - Schema object that can be registered in the inventory system
Traits§
- Deletable
- Ignis
Model - Ignis
Object - Core trait that all Ignis objects must implement
- Insertable
- Updatable
Functions§
- get_
registered_ by_ type - Get all registered objects of a specific type
- get_
registered_ events - Get all registered events
- get_
registered_ functions - Get all registered functions
- get_
registered_ procedures - Get all registered procedures
- get_
registered_ tables - Get all registered tables
- get_
registered_ triggers - Get all registered triggers
- get_
registered_ views - Get all registered views
- iter_
registered - Get an iterator over all registered schema objects
Type Aliases§
- Registered
Object Ref - Type alias for registered objects in the inventory
- Result
Result<T, Error>
Derive Macros§
- Deletable
- Derive macro for Deletable trait
- Ignis
Model - Derive macro for IgnisModel trait
- Insertable
- Derive macro for Insertable trait
- PgComposite
- Derive macro for PostgreSQL composite types
- Updatable
- Derive macro for Updatable trait