pub struct PgTest {
pub(crate) addr: String,
pub(crate) user: String,
pub(crate) timeout: Duration,
pub(crate) conns: BTreeMap<String, PgConn>,
pub(crate) verbose: bool,
}
Fields§
§addr: String
§user: String
§timeout: Duration
§conns: BTreeMap<String, PgConn>
§verbose: bool
Implementations§
source§impl PgTest
impl PgTest
pub fn new(addr: String, user: String, timeout: Duration) -> Result<Self>
pub(crate) fn get_conn( &mut self, name: Option<String>, options: Vec<(&str, &str)> ) -> Result<&mut PgConn>
pub fn send<F: Fn(&mut BytesMut)>( &mut self, conn: Option<String>, options: Vec<(&str, &str)>, f: F ) -> Result<()>
pub fn until( &mut self, conn: Option<String>, options: Vec<(&str, &str)>, until: Vec<&str>, err_field_typs: Vec<char>, ignore: BTreeSet<String> ) -> Result<Vec<String>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PgTest
impl Send for PgTest
impl Sync for PgTest
impl Unpin for PgTest
impl UnwindSafe for PgTest
Blanket Implementations§
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request