[−][src]Struct pgx::spi::Spi
Implementations
impl Spi
[src]
pub fn get_one<A: FromDatum + IntoDatum>(query: &str) -> Option<A>
[src]
pub fn get_two<A: FromDatum + IntoDatum, B: FromDatum + IntoDatum>(
query: &str
) -> (Option<A>, Option<B>)
[src]
query: &str
) -> (Option<A>, Option<B>)
pub fn get_three<A: FromDatum + IntoDatum, B: FromDatum + IntoDatum, C: FromDatum + IntoDatum>(
query: &str
) -> (Option<A>, Option<B>, Option<C>)
[src]
query: &str
) -> (Option<A>, Option<B>, Option<C>)
pub fn get_one_with_args<A: FromDatum + IntoDatum>(
query: &str,
args: Vec<(PgOid, Option<Datum>)>
) -> Option<A>
[src]
query: &str,
args: Vec<(PgOid, Option<Datum>)>
) -> Option<A>
pub fn get_two_with_args<A: FromDatum + IntoDatum, B: FromDatum + IntoDatum>(
query: &str,
args: Vec<(PgOid, Option<Datum>)>
) -> (Option<A>, Option<B>)
[src]
query: &str,
args: Vec<(PgOid, Option<Datum>)>
) -> (Option<A>, Option<B>)
pub fn get_three_with_args<A: FromDatum + IntoDatum, B: FromDatum + IntoDatum, C: FromDatum + IntoDatum>(
query: &str,
args: Vec<(PgOid, Option<Datum>)>
) -> (Option<A>, Option<B>, Option<C>)
[src]
query: &str,
args: Vec<(PgOid, Option<Datum>)>
) -> (Option<A>, Option<B>, Option<C>)
pub fn run(query: &str)
[src]
pub fn explain(query: &str) -> Json
[src]
explain a query, returning its result in json form
pub fn execute<F: FnOnce(SpiClient) + UnwindSafe>(f: F)
[src]
execute SPI commands via the provided SpiClient
pub fn connect<R: FromDatum + IntoDatum, F: FnOnce(SpiClient) -> Result<Option<R>, SpiError>>(
f: F
) -> Option<R>
[src]
f: F
) -> Option<R>
execute SPI commands via the provided SpiClient
and return a value from SPI which is
automatically copied into the CurrentMemoryContext
at the time of this function call
pub fn check_status(status_code: i32) -> SpiOk
[src]
Auto Trait Implementations
impl RefUnwindSafe for Spi
[src]
impl Send for Spi
[src]
impl Sync for Spi
[src]
impl Unpin for Spi
[src]
impl UnwindSafe for Spi
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,