pub enum SessionCommand {
Show 15 variants
UseGraph(String),
CreateGraph {
name: String,
if_not_exists: bool,
typed: Option<String>,
like_graph: Option<String>,
copy_of: Option<String>,
open: bool,
},
DropGraph {
name: String,
if_exists: bool,
},
SessionSetGraph(String),
SessionSetSchema(String),
SessionSetTimeZone(String),
SessionSetParameter(String, Expression),
SessionReset(SessionResetTarget),
SessionClose,
StartTransaction {
read_only: bool,
isolation_level: Option<TransactionIsolationLevel>,
},
Commit,
Rollback,
Savepoint(String),
RollbackToSavepoint(String),
ReleaseSavepoint(String),
}Expand description
Session and transaction commands.
Variants§
UseGraph(String)
USE GRAPH name
CreateGraph
CREATE [PROPERTY] GRAPH name [IF NOT EXISTS] [TYPED type_name] [LIKE source | AS COPY OF source] [OPEN | ANY]
Fields
DropGraph
DROP [PROPERTY] GRAPH [IF EXISTS] name
SessionSetGraph(String)
SESSION SET GRAPH name
SessionSetSchema(String)
SESSION SET SCHEMA name (ISO/IEC 39075 Section 7.1 GR1: independent from graph)
SessionSetTimeZone(String)
SESSION SET TIME ZONE 'tz'
SessionSetParameter(String, Expression)
SESSION SET PARAMETER $name = value
SessionReset(SessionResetTarget)
SESSION RESET [ALL | SCHEMA | GRAPH | TIME ZONE | PARAMETER]
(ISO/IEC 39075 Section 7.2: schema and graph can be reset independently)
SessionClose
SESSION CLOSE
StartTransaction
START TRANSACTION [READ ONLY | READ WRITE] [ISOLATION LEVEL <level>]
Fields
§
isolation_level: Option<TransactionIsolationLevel>Optional isolation level override.
Commit
COMMIT
Rollback
ROLLBACK
Savepoint(String)
SAVEPOINT name
RollbackToSavepoint(String)
ROLLBACK TO SAVEPOINT name
ReleaseSavepoint(String)
RELEASE SAVEPOINT name
Trait Implementations§
Source§impl Clone for SessionCommand
impl Clone for SessionCommand
Source§fn clone(&self) -> SessionCommand
fn clone(&self) -> SessionCommand
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 SessionCommand
impl RefUnwindSafe for SessionCommand
impl Send for SessionCommand
impl Sync for SessionCommand
impl Unpin for SessionCommand
impl UnsafeUnpin for SessionCommand
impl UnwindSafe for SessionCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more