Skip to main content

Crate pg

Crate pg 

Source

Modules§

protocol
types

Structs§

BindIter
Wraps an iterator to produce a PG array without allocating an intermediate Vec. Uses size_hint from the iterator for pre-allocation when available.
ConnectParams
Connection
DbError
Pool
PoolConfig
PooledConnection
Row
RowStream
Transaction

Enums§

PgError

Traits§

FromRow
Trait for types that can be constructed from a database Row. Used by query_as, query_one_as, query_first_as. Typically derived with #[derive(FromRow)].
FromSql
Queryer
Trait for anything that can execute SQL queries. Implemented for Connection, Pool, Transaction. All methods take &self thanks to interior mutability.
ToSql

Type Aliases§

Result

Derive Macros§

FromRow