Struct ydb_unofficial::sqlx::connection::YdbConnectOptions
source · pub struct YdbConnectOptions { /* private fields */ }Available on crate feature
sqlx only.Implementations§
source§impl YdbConnectOptions
impl YdbConnectOptions
pub fn with_creds(self, creds: UpdatableToken) -> Self
Trait Implementations§
source§impl Clone for YdbConnectOptions
impl Clone for YdbConnectOptions
source§fn clone(&self) -> YdbConnectOptions
fn clone(&self) -> YdbConnectOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl ConnectOptions for YdbConnectOptions
impl ConnectOptions for YdbConnectOptions
type Connection = YdbConnection
source§fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>>where
Self::Connection: Sized,
fn connect(&self) -> BoxFuture<'_, Result<Self::Connection, Error>>where Self::Connection: Sized,
Establish a new database connection with the options specified by
self.source§fn log_statements(self, level: LevelFilter) -> Self
fn log_statements(self, level: LevelFilter) -> Self
Log executed statements with the specified
levelsource§fn log_slow_statements(self, level: LevelFilter, duration: Duration) -> Self
fn log_slow_statements(self, level: LevelFilter, duration: Duration) -> Self
Log executed statements with a duration above the specified
duration
at the specified level.source§fn disable_statement_logging(self) -> Self
fn disable_statement_logging(self) -> Self
Entirely disables statement logging (both slow and regular).
source§impl Debug for YdbConnectOptions
impl Debug for YdbConnectOptions
Auto Trait Implementations§
impl RefUnwindSafe for YdbConnectOptions
impl Send for YdbConnectOptions
impl Sync for YdbConnectOptions
impl Unpin for YdbConnectOptions
impl UnwindSafe for YdbConnectOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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