pub struct SnowflakeSQL<'a> { /* private fields */ }
Implementations§
Source§impl<'a> SnowflakeSQL<'a>
impl<'a> SnowflakeSQL<'a>
pub async fn text(self) -> Result<String, SnowflakeSQLTextError>
Sourcepub async fn select<T: SnowflakeDeserialize>(
self,
) -> Result<StatementResult<'a, T>, SnowflakeSQLSelectError<T::Error>>
pub async fn select<T: SnowflakeDeserialize>( self, ) -> Result<StatementResult<'a, T>, SnowflakeSQLSelectError<T::Error>>
Use with SELECT
queries.
Sourcepub async fn manipulate(
self,
) -> Result<DataManipulationResult, SnowflakeSQLManipulateError>
pub async fn manipulate( self, ) -> Result<DataManipulationResult, SnowflakeSQLManipulateError>
Use with DELETE
, INSERT
, UPDATE
queries.
pub fn with_timeout(self, timeout: u32) -> Self
pub fn with_role<R: ToString>(self, role: R) -> Self
pub fn with_warehouse<W: ToString>(self, warehouse: W) -> Self
pub fn add_binding<T: Into<BindingValue>>(self, value: T) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SnowflakeSQL<'a>
impl<'a> !RefUnwindSafe for SnowflakeSQL<'a>
impl<'a> Send for SnowflakeSQL<'a>
impl<'a> Sync for SnowflakeSQL<'a>
impl<'a> Unpin for SnowflakeSQL<'a>
impl<'a> !UnwindSafe for SnowflakeSQL<'a>
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