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§
Sourcefn execute(
&self,
request: PostgresSqlRequest,
) -> Result<PostgresSqlResponse, AgentError>
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".