Skip to main content

Module async_connection

Module async_connection 

Source
Expand description

Async PostgreSQL connection implementation.

This module implements an async PostgreSQL connection using asupersync’s TCP primitives. It provides a shared wrapper that implements sqlmodel-core’s Connection trait.

The implementation currently focuses on:

  • Async connect + authentication (cleartext, MD5, SCRAM-SHA-256)
  • Extended query protocol for parameterized queries
  • Row decoding via the postgres type registry (OID + text/binary format)
  • Basic transaction support (BEGIN/COMMIT/ROLLBACK + savepoints)

Structs§

PgAsyncConnection
Async PostgreSQL connection.
SharedPgConnection
Shared, cloneable PostgreSQL connection with interior mutability.
SharedPgTransaction