Skip to main content

Crate drizzle_types

Crate drizzle_types 

Source
Expand description

SQL type definitions shared by the drizzle crates.

§Features

  • std (default): standard library support.
  • alloc: no_std with an allocator. Without std or alloc, only Dialect is available.
  • serde, schemars: serialization and JSON Schema for the DDL types.
  • uuid, chrono, geo-types, cidr, bit-vec: add the column types and Rust type mappings for those crates. time is accepted but currently adds nothing.
  • col16, col32, col64, col128, col200: allow row-value tuples of up to that many columns (8 by default).

Re-exports§

pub use sql::*;

Modules§

mysql
MySQL types. The supported server baseline is MySQL 8.0.31.
postgres
PostgreSQL types.
prelude
The dialect enum and each dialect’s column-type and category enums.
serde_helpers
#[serde(deserialize_with = ...)] helpers for Cow<'static, str> fields.
sql
Traits that classify SQL type markers, so query builders can check operations at compile time.
sqlite
SQLite types.

Structs§

DialectParseError
Error from parsing an unknown dialect name with str::parse.
MigrationTracking
Where applied migrations are recorded: the tracking table and its schema.

Enums§

Casing
Identifier casing strategy for inferred names.
ConfigValue
A config value written inline or read from an environment variable.
ConfigValueError
Failure resolving a ConfigValue::Env reference.
Dialect
A supported SQL database: SQLite, PostgreSQL or MySQL.