Module sqlite

Module sqlite 

Source

Modules§

graph
query
schema
types

Structs§

DeleteBuilder
See Delete for field descriptions. Call build() to get a finished query object.
IndexBuilder
InsertBuilder
See Insert for field descriptions. Call build() to get a finished query object.
Query
This represents an SQL query. A function will be generated which accepts a db connection and query parameters, and returns the query results. Call the new_* functions to get a builder.
SelectBodyBuilder
See SelectBody for field descriptions. Call build() to get a finished query object.
SelectBuilder
See Select for field descriptions. Call build() to get a finished query object.
UpdateBuilder
See Update for field descriptions. Call build() to get a finished query object.
Version
The version represents the state of a schema at a point in time.

Enums§

QueryResCount
The number of results this query returns. This determines if the return type is void, Option, the value directly, or a Vec. It must be a valid value per the query body (e.g. select can’t have None res count).

Functions§

generate
Generate Rust code for migrations and queries.
new_delete
Get a builder for a DELETE query.
new_insert
Get a builder for an INSERT query.
new_select
Get a builder for a SELECT query.
new_select_body
Get a builder for an inner SELECT, such as in a CTE, subquery, JOIN, etc.
new_select_from
Get a builder for a SELECT query. This allows advanced sources (like selecting from a synthetic table).
new_update
Get a builder for an UPDATE query.