pub enum QueryBackend {
Rest {
http: Client,
base_url: Arc<str>,
api_key: Arc<str>,
schema: String,
},
}Expand description
Backend for query execution.
By default, queries are executed via the PostgREST REST API.
With the direct-sql feature, queries can be executed directly via sqlx.
Variants§
Rest
PostgREST REST API backend (default).
Trait Implementations§
Source§impl Clone for QueryBackend
impl Clone for QueryBackend
Source§fn clone(&self) -> QueryBackend
fn clone(&self) -> QueryBackend
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for QueryBackend
impl !RefUnwindSafe for QueryBackend
impl Send for QueryBackend
impl Sync for QueryBackend
impl Unpin for QueryBackend
impl !UnwindSafe for QueryBackend
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