Skip to main content

Crate smelt_types

Crate smelt_types 

Source
Expand description

Type system definitions for smelt

This crate provides the core type representations used throughout smelt:

  • DataType: SQL data types (INTEGER, VARCHAR, DECIMAL, etc.)
  • TypedColumn: Column with type and nullability

These types are used by:

  • smelt-db for type checking and schema inference
  • smelt-cli for source configuration
  • smelt-lsp for type-aware editor features

Structs§

TypedColumn
A column with its data type and nullability

Enums§

DataType
SQL data types supported by smelt
FunctionCategory
Categories of SQL functions
SqlFunction
Known SQL function names used across smelt crates.
TypeParseError
Error parsing a type string

Functions§

parse_type
Parse a SQL type string into a DataType