RdsDataClient

Struct RdsDataClient 

Source
pub struct RdsDataClient { /* private fields */ }
Expand description

A client for the AWS RDS DataService API.

Implementations§

Source§

impl RdsDataClient

Source

pub fn new(region: Region) -> RdsDataClient

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> RdsDataClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client(client: Client, region: Region) -> RdsDataClient

Trait Implementations§

Source§

impl Clone for RdsDataClient

Source§

fn clone(&self) -> RdsDataClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl RdsData for RdsDataClient

Source§

fn batch_execute_statement<'life0, 'async_trait>( &'life0 self, input: BatchExecuteStatementRequest, ) -> Pin<Box<dyn Future<Output = Result<BatchExecuteStatementResponse, RusotoError<BatchExecuteStatementError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Runs a batch SQL statement over an array of data.

You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

Source§

fn begin_transaction<'life0, 'async_trait>( &'life0 self, input: BeginTransactionRequest, ) -> Pin<Box<dyn Future<Output = Result<BeginTransactionResponse, RusotoError<BeginTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Starts a SQL transaction.

 <important> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </important> 

Source§

fn commit_transaction<'life0, 'async_trait>( &'life0 self, input: CommitTransactionRequest, ) -> Pin<Box<dyn Future<Output = Result<CommitTransactionResponse, RusotoError<CommitTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Ends a SQL transaction started with the BeginTransaction operation and commits the changes.

Source§

fn execute_sql<'life0, 'async_trait>( &'life0 self, input: ExecuteSqlRequest, ) -> Pin<Box<dyn Future<Output = Result<ExecuteSqlResponse, RusotoError<ExecuteSqlError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Runs one or more SQL statements.

This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

Source§

fn execute_statement<'life0, 'async_trait>( &'life0 self, input: ExecuteStatementRequest, ) -> Pin<Box<dyn Future<Output = Result<ExecuteStatementResponse, RusotoError<ExecuteStatementError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Runs a SQL statement against a database.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

The response size limit is 1 MB. If the call returns more than 1 MB of response data, the call is terminated.

Source§

fn rollback_transaction<'life0, 'async_trait>( &'life0 self, input: RollbackTransactionRequest, ) -> Pin<Box<dyn Future<Output = Result<RollbackTransactionResponse, RusotoError<RollbackTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Performs a rollback of a transaction. Rolling back a transaction cancels its changes.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more