Skip to main content

Crate drizzle_types

Crate drizzle_types 

Source
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)
  • SQLite types in the sqlite module
  • PostgreSQL types in the postgres module

§Features

  • std - Standard library support (enabled by default)
  • alloc - Allocator support for no_std environments
  • uuid - Enable UUID type support
  • serde - Enable serde serialization/deserialization
  • chrono - Enable chrono date/time type support
  • time - Enable time crate type support
  • geo-types - Enable geometric type support
  • cidr - Enable network address type support
  • bit-vec - Enable bit vector type support

Re-exports§

pub use sql::*;

Modules§

postgres
PostgreSQL type 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
SQLite type definitions

Structs§

DialectParseError
Error returned when parsing an unknown dialect string
MigrationTracking
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.
EnvOrError
Failure resolving an EnvOr::Env reference.