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>(
self,
) -> Result<StatementResult<'a, T>, SnowflakeSQLSelectError<<T as SnowflakeDeserialize>::Error>>where
T: SnowflakeDeserialize,
pub async fn select<T>(
self,
) -> Result<StatementResult<'a, T>, SnowflakeSQLSelectError<<T as SnowflakeDeserialize>::Error>>where
T: SnowflakeDeserialize,
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) -> SnowflakeSQL<'a>
pub fn with_role<R>(self, role: R) -> SnowflakeSQL<'a>where
R: ToString,
pub fn with_warehouse<W>(self, warehouse: W) -> SnowflakeSQL<'a>where
W: ToString,
pub fn add_binding<T>(self, value: T) -> SnowflakeSQL<'a>where
T: Into<BindingValue>,
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