Skip to main content

Module sea_query

Module sea_query 

Source
Expand description

sea-query’s statements as queries the SQL is written into.

A SelectStatement, UpdateStatement or DeleteStatement (sea-orm’s, through QueryTrait::query), rendered for Postgres, MySQL/MariaDB or SQLite by sea-query.

The data becomes sea-query expressions rather than SQL text: conditions one Condition (all for AND, any for OR) added with cond_where, which writes the WHERE itself; sort keys order_by; a page limit and offset; assignments value. sea-query binds every value and quotes the column names.

Public as queryweave_sql::sea_query: check_column_types, which checks a SeaORM entity’s column types against a model’s value types.

Structs§

ColumnTypeMismatch
A domain field whose value does not fit its column; see check_column_types.

Enums§

MismatchReason
Why a domain field’s value does not fit its column.

Functions§

accepted_kinds
The value types a column of column_type takes; None for a custom type, which is not checked.
check_column_types
Check that the value of every field of the model M fits its column on the entity C.