Skip to main content

Crate torm

Crate torm 

Source

Re-exports§

pub use db::db_types::SqlValue;
pub use db::db_types::Row;
pub use db::db_types::QueryResult;
pub use db::db_types::DbType;
pub use db::database::DatabaseConnection;
pub use db::database::ConnectionConfig;
pub use db::database::ConnectionFactory;
pub use db::database::Transaction;
pub use db::database::DbError;
pub use db::database::Database;
pub use db::sqlite::SqliteConnection;
pub use db::mysql::MySqlConnection;
pub use db::postgresql::PostgresConnection;
pub use db::storage::StorageEngine;
pub use db::storage::TableSchema;
pub use db::storage::ColumnDefinition as StorageColumnDefinition;
pub use db::storage::ColumnType as StorageColumnType;
pub use db::storage::WhereClause;
pub use db::storage::StorageError;
pub use db::async_storage::AsyncStorageEngine;
pub use db::driver::DBDriver;
pub use db::driver::Dsn;
pub use db::error::Result;
pub use db::error::TormError;
pub use db::pool::Pool;
pub use orm::model::Model;
pub use orm::model::Timestamps;
pub use orm::query::Query;
pub use orm::query::QueryBuilder;
pub use orm::query::QueryExecutor;
pub use orm::query::SqlStatement;
pub use orm::query::WhereCondition;
pub use orm::query::OrderDirection;
pub use orm::advanced_query::AdvancedQuery;
pub use orm::advanced_query::JoinType;
pub use orm::advanced_query::JoinClause;
pub use orm::advanced_query::AggFunction;
pub use orm::advanced_query::AggregationClause;
pub use orm::advanced_query::OrderClause;
pub use orm::advanced_query::Pagination;
pub use orm::relations::Relation;
pub use orm::relations::RelationType;
pub use orm::relations::BelongsTo;
pub use orm::relations::HasOne;
pub use orm::relations::HasMany;
pub use orm::relations::ManyToMany;
pub use orm::relations::PreloadBuilder;
pub use orm::migration::ColumnType;
pub use orm::migration::ColumnDefinition;
pub use orm::migration::IndexDefinition;
pub use orm::migration::TableDefinition;
pub use orm::migration::Migration;
pub use orm::migration::MigrationOperation;
pub use orm::migration::ForeignKeyDefinition;
pub use orm::migration::Migrator;
pub use orm::migration::MigrationStatus;
pub use utils::simple_pool::SimplePool;
pub use utils::simple_pool::PoolStatus;
pub use utils::simple_lru::SimpleLruCache;
pub use utils::simple_error::SimpleError;
pub use utils::simple_error::SimpleResult;
pub use utils::simple_uuid::SimpleUuid;
pub use utils::simple_uuid::IdGenerator;
pub use utils::sql_safety::SqlSanitizer;
pub use utils::sql_safety::validate_identifier;
pub use utils::sql_safety::quote_identifier;
pub use utils::sql_safety::escape_string;
pub use utils::sql_safety::contains_injection_pattern;
pub use monitoring::logger::Logger;
pub use monitoring::logger::LogLevel;
pub use monitoring::logger::LogEntry;
pub use monitoring::logger::ConsoleLogger;
pub use monitoring::logger::FileLogger;
pub use monitoring::logger::CompositeLogger;
pub use monitoring::logger::QueryTracer;
pub use monitoring::logger::LogManager;
pub use monitoring::logger::PerformanceMonitor;
pub use monitoring::logger::PerformanceStats;
pub use monitoring::performance::QueryCache;
pub use monitoring::performance::CacheStats;
pub use monitoring::performance::BatchOperation;
pub use monitoring::performance::PreparedStatementCache;
pub use monitoring::performance::ConnectionPoolMonitor;
pub use monitoring::performance::PerformanceConfig;
pub use monitoring::performance::PerformanceManager;
pub use chrono;

Modules§

db
monitoring
orm
utils

Structs§

Uuid
A Universally Unique Identifier (UUID).

Enums§

Json
Represents any valid JSON value.

Derive Macros§

Model
Entry point for #[derive(Model)].