Skip to main content

PostgresSqlTransport

Trait PostgresSqlTransport 

Source
pub trait PostgresSqlTransport: Send + Sync {
    // Required method
    fn execute(
        &self,
        request: PostgresSqlRequest,
    ) -> Result<PostgresSqlResponse, AgentError>;
}
Expand description

Host-owned SQL transport for Postgres-style stores.

Required Methods§

Source

fn execute( &self, request: PostgresSqlRequest, ) -> Result<PostgresSqlResponse, AgentError>

Executes a SQL request. Implementations may talk to a database; tests can script responses.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§