Skip to main content

Module sql

Module sql 

Source
Expand description

SQL data type markers for compile-time type safety.

This module provides zero-sized type markers that represent SQL data types at the Rust type level, enabling the type system to verify compatible comparisons and operations at compile time.

Structs§

Array
PostgreSQL-style SQL array type marker.
Placeholder
Placeholder marker used for bind parameters before concrete typing.

Traits§

ArithmeticOutput
Maps the left-hand numeric type to the result type of an arithmetic operation (+, -, *, /, %).
Assignable
Binary
Binary data types (BLOB, BYTEA).
BooleanLike
Boolean-like SQL types that support logical operations (NOT, AND, OR).
Compatible
DataType
Represents a SQL data type at the type level.
Floating
Floating-point SQL types (REAL, DOUBLE PRECISION).
Integral
Integer SQL types (SMALLINT, INTEGER, BIGINT).
Numeric
Numeric SQL types that support arithmetic operations (+, -, *, /).
Temporal
Temporal SQL types (DATE, TIME, TIMESTAMP).
Textual
String/text SQL types (TEXT, VARCHAR, CHAR).