Skip to main content

Crate turnloop_mysql

Crate turnloop_mysql 

Source
Expand description

§Getting started on turnloop

Enable the turnloop feature for the asynchronous module. The embedding host owns LocalExecutor and calls turn; adapters await its streams and deadline futures. See the crate README and turnloop-io for ownership, streaming and cancellation examples. Default features retain the sans-I/O API. Pull-driven MySQL protocol. The host owns transport, entropy, time and JS conversion.

Modules§

pool
Sans-I/O pool: the host executes Connect/Close requests, then reports their completion. Checkout events are FIFO; idle reuse is LIFO, as in pg/mysql2.
types
mysql2 conversion policy, independent of JS allocation, timezone databases or a clock. Json and Date explicitly request host-side JS construction.

Structs§

Column
ColumnFlags
MySql column flags
ColumnTypeInfo
Per-column wire metadata that decides how a value is decoded. Rows carry it for every column (Row::columns, Row::typed), so a host can apply its own policy by MySQL column type without tracking Column events.
Config
Connection
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
Row
One row packet, decoded lazily and validated as it is iterated.
ServerError
Statement
StatusFlags
MySql server status flags

Enums§

ColumnType
Type of MySql column field
Error
Event
Outcome
RawValue
Value
Client side representation of a value of MySql column.

Functions§

error_code

Type Aliases§

Result
Token