Skip to main content

Module types

Module types 

Source
Expand description

Type encoding and decoding between Rust and SQLite.

SQLite has a simple type system with 5 storage classes:

  • INTEGER: Signed integer (1, 2, 3, 4, 6, or 8 bytes)
  • REAL: 8-byte IEEE floating point
  • TEXT: UTF-8 or UTF-16 string
  • BLOB: Binary data
  • NULL: The NULL value

We map these to/from sqlmodel-core’s Value type.

Functions§

bind_value
Bind a Value to a prepared statement parameter.
column_name
Get the column name from a result.
read_column
Read a column value from a result row.