pub struct Client {
pub client: Client,
/* private fields */
}Fields§
§client: ClientImplementations§
Source§impl Client
impl Client
Sourcepub fn new_from_env() -> Result<Self>
pub fn new_from_env() -> Result<Self>
Returns and error if NEON_CONNECTION_STRING isn’t set.
pub fn new(connection_string: &str) -> Result<Self>
Sourcepub async fn execute_raw(
&self,
sql: Query,
is_select: bool,
) -> Result<QueryResponse>
pub async fn execute_raw( &self, sql: Query, is_select: bool, ) -> Result<QueryResponse>
Execute a SQL query and return the raw response
Sourcepub async fn execute_transaction(&self, transaction: Transaction) -> Result<()>
pub async fn execute_transaction(&self, transaction: Transaction) -> Result<()>
Execute a SQL transaction
Sourcepub async fn execute_transaction_raw(
&self,
sql: Transaction,
) -> Result<TransactionResponse>
pub async fn execute_transaction_raw( &self, sql: Transaction, ) -> Result<TransactionResponse>
Execute a SQL transaction and return the raw response
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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