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§
- The logic of Conn is very simple, just a static dispatcher for TcpStream: Unencrypted or Ssl: Encrypted.
- PgProtocol
State πStates flow happened from top to down.
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.
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 π