Struct skytable::sync::TlsConnection
source · [−]pub struct TlsConnection { /* private fields */ }
sync
and (crate features ssl
or sslv
) only.Expand description
A database connection over Skyhash/TLS
Implementations
This function will write a Query
to the stream and read the response from the
server. It will then determine if the returned response is complete or incomplete
or invalid and return an appropriate variant of Error
wrapped in IoResult
for any I/O errors that may occur
Panics
This method will panic:
- if the
Query
supplied is empty (i.e has no arguments) This function is a subroutine ofrun_query
used to parse the response packet
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TlsConnection
impl Send for TlsConnection
impl Sync for TlsConnection
impl Unpin for TlsConnection
impl UnwindSafe for TlsConnection
Blanket Implementations
sync
only.Get the number of keys present in the database
sync
only.Removes all the keys present in the database
fn get<'s, T: FromSkyhashBytes>(
&'s mut self,
key: impl IntoSkyhashBytes + 's
) -> SkyResult<T>
fn get<'s, T: FromSkyhashBytes>(
&'s mut self,
key: impl IntoSkyhashBytes + 's
) -> SkyResult<T>
sync
only.Get the value of a key Read more
fn mget<'s, T: FromSkyhashBytes>(
&'s mut self,
keys: impl IntoSkyhashAction + 's
) -> SkyResult<T>
fn mget<'s, T: FromSkyhashBytes>(
&'s mut self,
keys: impl IntoSkyhashAction + 's
) -> SkyResult<T>
sync
only.Get multiple keys Read more
fn mset<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<u64>
fn mset<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<u64>
sync
only.Sets the value of multiple keys and values and returns the number of keys that were set Read more
fn mupdate<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<u64>
fn mupdate<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<u64>
sync
only.Updates the value of multiple keys and values and returns the number of keys that were updated Read more
fn pop<'s, T: FromSkyhashBytes>(
&'s mut self,
keys: impl IntoSkyhashBytes + 's
) -> SkyResult<T>
fn pop<'s, T: FromSkyhashBytes>(
&'s mut self,
keys: impl IntoSkyhashBytes + 's
) -> SkyResult<T>
sync
only.Consumes a key if it exists Read more
fn mpop<'s, T: FromSkyhashBytes>(
&'s mut self,
keys: impl IntoSkyhashAction + 's
) -> SkyResult<T>
fn mpop<'s, T: FromSkyhashBytes>(
&'s mut self,
keys: impl IntoSkyhashAction + 's
) -> SkyResult<T>
sync
only.Consumes the provided keys if they exist Read more
sync
only.Deletes all the provided keys if they exist or doesn’t do anything at all. This method will return true if all the provided keys were deleted, else it will return false Read more
fn set<'s>(
&'s mut self,
key: impl IntoSkyhashBytes + 's,
value: impl IntoSkyhashBytes + 's
) -> SkyResult<bool>
fn set<'s>(
&'s mut self,
key: impl IntoSkyhashBytes + 's,
value: impl IntoSkyhashBytes + 's
) -> SkyResult<bool>
sync
only.Set the value of a key Read more
fn sset<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<bool>
fn sset<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<bool>
sync
only.Sets the value of all the provided keys or does nothing. This method will return true if all the keys were set or will return false if none were set Read more
fn supdate<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<bool>
fn supdate<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<bool>
sync
only.Updates the value of all the provided keys or does nothing. This method will return true if all the keys were updated or will return false if none were updated. Read more
fn update<'s>(
&'s mut self,
key: impl IntoSkyhashBytes + 's,
value: impl IntoSkyhashBytes + 's
) -> SkyResult<()>
fn update<'s>(
&'s mut self,
key: impl IntoSkyhashBytes + 's,
value: impl IntoSkyhashBytes + 's
) -> SkyResult<()>
sync
only.Update the value of a key Read more
fn uset<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<u64>
fn uset<'s, T: IntoSkyhashBytes + 's, U: IntoSkyhashBytes + 's>(
&'s mut self,
keys: impl GetIterator<T> + 's,
values: impl GetIterator<U> + 's
) -> SkyResult<u64>
sync
only.Updates or sets all the provided keys and returns the number of keys that were set Read more
Mutably borrows from an owned value. Read more
sync
only.This function switches to the provided entity. Read more
sync
only.Create a table from the provided configuration
fn drop_keyspace<'s>(
&'s mut self,
keyspace: impl IntoSkyhashBytes + 's,
force: bool
) -> SkyResult<()>
fn drop_keyspace<'s>(
&'s mut self,
keyspace: impl IntoSkyhashBytes + 's,
force: bool
) -> SkyResult<()>
sync
only.Drop the provided keyspace Read more