Docs.rs
  • testkit-postgres-0.1.1
    • testkit-postgres 0.1.1
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • auser
    • Dependencies
      • async-trait ^0.1 normal
      • deadpool-postgres ^0.14 normal optional
      • futures ^0.3 normal
      • postgres ^0.19 normal
      • postgres-types ^0.2 normal optional
      • sqlx ^0.8 normal optional
      • testkit-core ^0.1.0 normal
      • thiserror ^2.0 normal
      • tokio ^1 normal
      • tokio-postgres ^0.7 normal optional
      • tracing ^0.1 normal
      • url ^2.4 normal
      • uuid ^1.6 normal
      • tokio ^1 dev
    • Versions
    • 59.38% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate testkit_postgres

testkit_postgres0.1.1

  • All Items

Crate Items

  • Modules
  • Macros
  • Structs
  • Enums
  • Traits
  • Functions

Crates

  • testkit_postgres

Crate testkit_postgres

Source

Re-exports§

pub use tokio_postgres::*;

Modules§

tokio_postgres

Macros§

boxed_async
Macro to automatically box an async block for use with the boxed database API

Structs§

DatabaseConfig
Re-export the traits from testkit-core Configuration for database connections
DatabaseName
Re-export the traits from testkit-core A unique database name
TestContext
Re-export the traits from testkit-core A test context that contains a database instance
TestDatabaseInstance
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§

PostgresError
Error type for PostgreSQL operations

Traits§

DatabaseBackend
Re-export the traits from testkit-core Trait defining a test database abstraction
DatabasePool
Re-export the traits from testkit-core
TestDatabaseConnection
Re-export the traits from testkit-core
TransactionManager
TransactionTrait

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

Results

Settings
Help

Query parser error: "Unexpected - (did you mean ->?)".