Skip to main content

Module sql

Module sql 

Source

Structs§

ColumnFlags
Column metadata flags for ColumnRef, packed into one byte.
ColumnRef
A column’s table, name, and schema metadata, generated by the table macros.
ColumnSqlRef
The parts of a ColumnRef that SQL rendering needs.
ConstraintRef
A table constraint (UNIQUE, CHECK, …), as static metadata.
EnumVariantRef
One value of an enum column type.
ForeignKeyRef
A foreign key constraint, as static metadata generated by the table macros.
OwnedSQL
A SQL fragment that owns all its data, so it can be stored without a lifetime.
PrimaryKeyRef
A table’s primary key columns, as static metadata.
SQL
A SQL fragment: tokens, identifiers, raw text, and bound parameters.
TableRef
A table’s name, columns, and schema metadata, generated by the table macros.
TableSqlRef
The parts of a TableRef that SQL rendering needs.

Enums§

ColumnDialect
Column metadata that applies to one dialect only.
OwnedSQLChunk
A SQLChunk that owns all its data, so it has no lifetime.
SQLChunk
One piece of a SQL fragment.
TableDialect
Table metadata that applies to one dialect only.
Token
A SQL keyword, operator, or punctuation mark.

Traits§

SQLEnumVariants
The values an enum column type can hold, in declaration order.

Functions§

comment
Creates a free-form SQL comment: /*text*/.
comment_tags
Creates a sqlcommenter tag comment: /*key='value',...*/.
write_quoted_ident
Writes name as a double-quoted SQL identifier, doubling any embedded ".