Struct space_lib::Builder

source ·
pub struct Builder<'a> { /* private fields */ }

Implementations§

source§

impl Builder<'_>

source

pub fn auth<T: Into<String>>(self, token: T) -> Self

source

pub fn select<T: Into<String>>(self, columns: T) -> Self

source

pub fn order<T: Into<String>>(self, columns: T) -> Self

source

pub fn limit(self, count: usize) -> Self

source

pub fn range(self, low: usize, high: usize) -> Self

source

pub fn exact_count(self) -> Self

source

pub fn planned_count(self) -> Self

source

pub fn estimated_count(self) -> Self

source

pub fn single(self) -> Self

source

pub fn insert<T: Into<String>>(self, body: T) -> Self

source

pub fn upsert<T: Into<String>>(self, body: T) -> Self

source

pub fn on_conflict<T: Into<String>>(self, columns: T) -> Self

source

pub fn update<T: Into<String>>(self, body: T) -> Self

source

pub fn delete(self) -> Self

source

pub fn not<T, U, V>(self, operator: T, column: U, filter: V) -> Selfwhere
    T: Into<String>,
    U: Into<String>,
    V: Into<String>,

source

pub fn execute(self) -> Result<Response, HostError>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Builder<'a>

§

impl<'a> Send for Builder<'a>

§

impl<'a> Sync for Builder<'a>

§

impl<'a> Unpin for Builder<'a>

§

impl<'a> UnwindSafe for Builder<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.