Modules§
Structs§
- At present there is a hard-wired set of parameters for which ParameterStatus will be generated: they are:
- The state machine for each psql connection. Read pg messages from tcp stream and write results back.
- Wraps a byte stream and read/write pg messages.
- Configures TLS encryption for connections.
Enums§
- PgProtocol
State πStates flow happened from top to down. - PgStream
Inner π
Statics§
- The current session. Concrete type is erased for different session implementations.
- Truncates query log if itβs longer than
RW_QUERY_LOG_TRUNCATE_LEN
, to avoid log file being too large.
Traits§
- Trait for a byte stream that can be used for pg protocol.
Functions§
- Truncate 0 from C string in Bytes and stringify it (returns slice, no allocations).
- record_
sql_ πin_ span Recordsql
in the current tracing span. - redact_
sql πRedacts SQL options. Data in DML is not redacted.