Re-exports§
pub use tokio_postgres::*;
Modules§
Macros§
- boxed_
async - Macro to automatically box an async block for use with the boxed database API
Structs§
- Database
Config - Re-export the traits from testkit-core Configuration for database connections
- Database
Name - Re-export the traits from testkit-core A unique database name
- Test
Context - Re-export the traits from testkit-core A test context that contains a database instance
- Test
Database Instance - Re-export the traits from testkit-core A test database that handles setup, connections, and cleanup TODO: Create a TestManager that can handle connection pooling and cleanup
Enums§
- Postgres
Error - Error type for PostgreSQL operations
Traits§
- Database
Backend - Re-export the traits from testkit-core Trait defining a test database abstraction
- Database
Pool - Re-export the traits from testkit-core
- Test
Database Connection - Re-export the traits from testkit-core
- Transaction
Manager - Transaction
Trait
Functions§
- with_
boxed_ database - Create a new database entry point with the given backend
- with_
boxed_ database_ config - Create a new database entry point with the given backend and config
- with_
connection - Execute a function with a newly created connection and automatically close it
- with_
connection_ string - Execute a function with a newly created connection using a connection string
- with_
database - Create a new database entry point with the given backend
- with_
postgres_ connection - Execute a function with a direct database connection using tokio-postgres This is the most efficient way to perform a one-off database operation The connection is automatically closed when the operation completes