Expand description
Shared type definitions for Drizzle ORM
This crate provides common type definitions used across multiple Drizzle crates, including:
Dialect- Database dialect enum (SQLite,PostgreSQL,MySQL)SQLitetypes in thesqlitemodulePostgreSQLtypes in thepostgresmodule
§Features
std- Standard library support (enabled by default)alloc- Allocator support forno_stdenvironmentsuuid- Enable UUID type supportserde- Enable serde serialization/deserializationchrono- Enable chrono date/time type supporttime- Enable time crate type supportgeo-types- Enable geometric type supportcidr- Enable network address type supportbit-vec- Enable bit vector type support
Re-exports§
pub use sql::*;
Modules§
- postgres
PostgreSQLtype definitions- prelude
- Prelude module for commonly used types
- serde_
helpers - Serde helpers for Cow<’static, str> deserialization
- sql
- SQL data type markers for compile-time type safety.
- sqlite
SQLitetype definitions
Structs§
- Dialect
Parse Error - Error returned when parsing an unknown dialect string
- Migration
Tracking - Shared migration metadata configuration.
Enums§
- Casing
- Identifier casing strategy for inferred names.
- Dialect
- SQL dialect for database-specific behavior
- EnvOr
- A value that’s either a literal string or an env-var reference.
- EnvOr
Error - Failure resolving an
EnvOr::Envreference.