Crate vibesql_types

Crate vibesql_types 

Source
Expand description

SQL:1999 Type System

This crate provides the type system for SQL:1999, including:

  • Data type definitions (INTEGER, VARCHAR, BOOLEAN, etc.)
  • SQL values representation
  • Type compatibility and coercion rules
  • Type checking utilities

Structs§

Date
SQL DATE type - represents a date without time
Interval
SQL INTERVAL type - represents a duration
MySqlModeFlags
MySQL-specific mode flags (similar to MySQL’s sql_mode variable)
Time
SQL TIME type - represents a time without date
Timestamp
SQL TIMESTAMP type - represents a date and time

Enums§

ConcatOperator
String concatenation operator preference
DataType
SQL:1999 Data Types
DivisionBehavior
Operator behavior traits and types for different SQL modes
IntervalField
SQL:1999 Interval Fields
SqlMode
SQL compatibility mode
SqlValue
SQL Values - runtime representation of data
TypeAffinity
SQLite Type Affinity
ValueType
Represents the value type category for type inference and coercion

Traits§

OperatorBehavior
Trait for mode-specific operator behaviors
TypeBehavior
Type system behavior trait for SQL modes

Type Aliases§

StringValue
String type for SQL values using ArcStr with small string optimization (SSO). Strings ≤22 bytes are stored inline without heap allocation.