Skip to main content

Module backend

Module backend 

Source
Expand description

Translating the SQL AST into engine-specific SQL statements.

Structs§

BoundSql
A piece of SQL with the values it binds standing where they are bound.
MariaDbDialect
MariaDB’s dialect: MySQL’s, but for JSON equality.
MysqlQueryBuilder
Mysql query builder.
PostgresQueryBuilder
Postgres query builder.
SqliteQueryBuilder
Sqlite query builder.

Enums§

ArrayOperator
An array predicate, read as PostgreSQL’s array operators read it.
BoundPart
One part of a BoundSql.
JsonContainment
Which way a JSON containment test reads, as PostgreSQL’s @> and <@ do.
JsonExistence
What a JSON existence predicate looks for.
JsonPathStep
One step of a JSON path.
Oper

Constants§

MATCH_NOTHING
A predicate that holds for no row.

Traits§

BoundPiece
What a BoundSql is built from: text, a Value bound in place, or another BoundSql.
EscapeBuilder
OperLeftAssocDecider
PrecedenceDecider
QueryBuilder
QuotedBuilder
SqlDialect
The SQL dialect of a backend, for SQL written as text.
TableRefBuilder

Functions§

is_plain_identifier
Whether segment is a plain identifier: an ASCII letter or _, then ASCII letters, digits or _.
json_path_text
A JSON path as MySQL, MariaDB and SQLite read it, every key quoted.
parse_json_path
The steps of a JSON path.

Type Aliases§

MySqlQueryBuilder