Modules§
Macros§
- cols
- expr
- impl_
executor_ transaction - join
- possibly_
parenthesized - send_
value - Sends the value through the channel and logs in case of error.
- take_
until - Accumulates tokens until one of the supplied parsers succeeds.
- truncate_
long
Structs§
- Binary
Op - Column
Def - Declarative specification of a table column.
- Column
Ref - Fully-ì-qualified reference to a table column.
- Context
- Context
Updater - Declare
Table Ref - Wrapper used when declaring table references in generated macros.
- Fixed
Decimal - Decimal wrapper enforcing compile-time width/scale.
- Generic
SqlWriter - Fallback generic SQL writer (closest to PostgreSQL / DuckDB conventions).
- Interval
- Join
- Binary join of two datasets with optional ON predicate.
- Ordered
- References
- Foreign key reference to another Entity’s columns.
- RowLabeled
- A result row with its corresponding column labels.
- Rows
Affected - Metadata about modify operations (INSERT/UPDATE/DELETE).
- Table
Ref - Reference to a table (schema-qualified + optional alias).
- Type
Decoded - Intermediate decoded type information used by derive macros.
- UnaryOp
Enums§
- Action
- Referential action for foreign key updates / deletes.
- Binary
OpType - Either
Iterator - Polymorphic iterator adapter returning items from either variant.
- Fragment
- Interval
Unit - Join
Type - Supported SQL join variants.
- Operand
- Order
- Passive
- Wrapper marking whether a column should be considered set or skipped (passive) on INSERT.
- Primary
KeyType - Indicates how (or if) a column participates in the primary key.
- Query
- A query ready to be executed by an
Executor. - Query
Result - Heterogeneous items emitted by
Executor::runcombining rows and modify results. - Unary
OpType - Value
- Strongly-typed, nullable SQL value representation used across Tank.
Traits§
- AsValue
- Column
Trait - Helper trait for types that expose an underlying column definition and reference.
- Connection
- A live database handle capable of executing queries and spawning transactions.
- DataSet
- A selectable data source (table, join tree).
- Driver
- A backend implementation providing connection + SQL dialect services.
- Entity
- Represents a database-backed record with schema and persistence behavior.
- Error
Context - Provides the
contextmethod forResult. - Executor
- Async query executor bound to a concrete
Driver. - Expression
- A renderable SQL expression node.
- OpPrecedence
- Provides numeric precedence for expressions allowing dialect writers to insert parentheses.
- Prepared
- A parameterized, backend-prepared query handle.
- SqlWriter
- Dialect printer converting semantic constructs into concrete SQL strings.
- Transaction
- A mutable transactional context implementing
Executor.
Functions§
- as_
c_ string - Convenience wrapper converting into a
CString, panicking on interior NUL. - consume_
while - Consume a prefix of
inputwhile the predicate returns true, returning that slice. - decode_
type - matches_
path - Determine if the trailing segments of a
syn::Pathmatch the expected identifiers. - quote_
cow - Quote a
Cow<T>preserving borrowed vs owned status for generated code. - quote_
option - Quote an
Option<T>into tokens. - separated_
by - Write an iterator of items separated by a delimiter into a string.
Type Aliases§
- Check
Passive - Error
- Crate-wide error alias using
anyhow. - Result
- Crate-wide result alias using
anyhowfor flexible error context. - Row
- Owned row value slice matching
RowNameslength. - RowNames
- Shared reference-counted column name list.