Struct reql::Session [−][src]
pub struct Session { /* fields omitted */ }
Expand description
The connection object returned by r.connect()
Implementations
Change the default database on this connection
Example
Change the default database so that we don’t need to specify the database when referencing a table.
conn.use_("marvel").await;
r.table("heroes").run(conn) // refers to r.db("marvel").table("heroes")
Related commands
Ensures that previous queries with the noreply
flag have been
processed by the server
Note that this guarantee only applies to queries run on the given connection.
Example
We have previously run queries with noreply
set to true
. Now wait until the server has processed them.
session.noreply_wait().await
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more