Skip to main contentCrate qraft
Source - aggregate
- Aggregate expressions such as
count, sum, and avg.
Aggregate expression helpers such as count, sum, and avg. - alias
- Alias helpers for tables, subqueries, and projected expressions.
Alias utilities for reusing tables, subqueries, and projected expressions.
- builder
- Insert, update, and delete builders.
Insert, update, and delete statement builders.
- cte
- Common table expressions and references to named CTEs.
- expression
- Typed SQL expression nodes and extension traits.
Typed SQL expression nodes and extension traits.
- prelude
- query
- Select builders and related clause traits.
Select builders and clause traits.
- quex
- raw
- Raw SQL escape hatches with bound parameters.
Raw SQL fragments and full statements with bound parameters.
- relation
- Manual relationship field descriptors and builders.
- BigInt
- SQL 64-bit signed integer type.
- Blob
- SQL binary/blob type.
- Bool
- SQL boolean type.
- ConnectOptions
- Connection settings parsed from a URL or built manually.
- Connection
- A simple handle for one database connection.
- Date
- SQL date type.
- Decoder
- Reads one SQL column value for
Decode. - DefaultQueryPolicy
- DraftField
- Identifies a persisted field inside a model draft.
- Encoder
- Encodes one application value into a SQL parameter sink.
- ExecResult
- The outcome of an
insert, update, delete, or other statement that does
not return rows. - Float
- SQL single-precision floating-point type.
- Hooks
- Optional pool hooks.
- Int
- SQL 32-bit signed integer type.
- MySql
- Emits SQL using MariaDB/MySQL syntax.
- MysqlConnectOptions
- mysql or mariadb connection settings.
- NotNull
- Marker for non-null SQL expressions in type-level computations.
- Null
- Marker for nullable SQL expressions in type-level computations.
- Nullable
- Nullable wrapper for another SQL type.
- Params
- An owned list of positional parameters.
- Pool
- A cloneable pool of database connections.
- PoolBuilder
- Builder for
Pool. - PoolStatement
- A statement that belongs to a pool.
- PoolTransaction
- A transaction started from a
Pool. - PooledConnection
- A connection checked out from a
Pool. - PooledStatement
- A statement prepared on a checked-out connection.
- PooledTransaction
- A transaction borrowed from a
PooledConnection. - Postgres
- Emits SQL using PostgreSQL syntax.
- PostgresConnectOptions
- postgres connection settings.
- Prepare
- A request to prepare SQL against an executor.
- Query
- Untyped query state used while shaping SQL structure.
- QueryOf
- Query state with an attached row type.
- QuexColumn
- Metadata for one result column.
- Row
- A row whose column metadata and values are owned by Rust.
- RowRef
- A borrowed row from a result stream.
- Rows
- A forward-only stream of rows returned by a query.
- Sqlite
- Emits SQL using SQLite syntax.
- SqliteConnectOptions
- sqlite connection settings.
- SyncResult
- SyncWithoutDetachingResult
- Text
- SQL text type.
- Time
- SQL time type.
- Timestamp
- SQL timestamp type.
- ToggleResult
- Transaction
- A transaction on a
Connection connection. - UBigInt
- SQL 64-bit unsigned integer type.
- UInt
- SQL 32-bit unsigned integer type.
- Untyped
- Placeholder type for untyped expressions such as raw column names.
- Driver
- The database driver selected for a connection or pool.
- Error
- Errors returned by the facade.
- ParamRef
- A borrowed SQL parameter value.
- QueryVisibility
- Connects a Rust model type to its generated schema module and table name.
- QuexColumnType
- Driver-specific column type metadata.
- SaveResult
- Generated draft wrapper capable of persisting model changes.
- Statement
- A driver-specific prepared statement behind the facade.
- Value
- An owned database value.
- AttachInput
- Converts many-to-many attach inputs into related key values.
- CompareUntyped
- Builds untyped comparison expressions for ad-hoc raw column names.
- Compatible
- Explicit typed compatibility between a Rust value and a qraft SQL type.
- Decode
- Decodes a single SQL value into an application type.
- DefaultMeta
- Default SQL marker type for a Rust value.
- Draftable
- Produces the generated draft wrapper for a model.
- Encode
- Converts application values into SQL parameters.
- EncodeTarget
- Executor
- Something that can run SQL.
- FindsByKey
- Describes a model that can build a query from its declared primary key.
- FromColumnRef
- Decodes one column directly from a borrowed row.
- FromPivotRow
- Decodes the pivot portion of a joined row from
quex::Row. - FromPrefixedRow
- Decodes a prefixed projection from a
quex::Row. - FromRow
- Decodes an owned row into an application type.
- FromRowRef
- Decodes a borrowed row without first collecting it into an owned row.
- IntoConnectOptions
- Converts a value into generic connection options.
- ModelKey
- Exposes the primary key value type for derived models.
- ModelQueryPolicy
- MorphName
- Exposes the discriminator stored for polymorphic relations.
- ParamSource
- A borrowed source of positional SQL parameters.
- Pivot
- Describes the projected fields of a pivot type in a fixed order.
- PreparedStatement
- A prepared statement that can be run with borrowed parameters.
- Qrafting
- QuexColumnIndex
- A column lookup accepted by row accessors.
- RelationForeignKey
- Converts a relation parent key into the child foreign-key field type.
- RelationForeignKeyRef
- Converts a borrowed relation parent key into the child foreign-key field type.
- RelationMorphType
- Converts a morph discriminator string into the child field type.
- RelationQuery
- Converts a relation wrapper into an optional typed parent query.
- RowStream
- A forward-only stream of result rows.
- SaveDraft
- Generated draft wrapper capable of persisting model changes.
- delete_from
- Starts a delete statement for the given table.
- insert_into
- Starts an insert statement for the given table.
- prepare
- Starts a prepared-statement builder.
- query
- Starts a query.
- raw
- Starts a raw SQL value using
? placeholders. - select
- Starts a
select builder from a projection value. - update
- Starts an update statement for a table or aliased table.
- with
- Starts a
with (...) wrapper from one or more typed CTE definitions. - with_recursive
- Starts a
with recursive (...) wrapper from one or more typed CTE definitions.
- Result
- Convenient result type used by
quex.