pub enum Command {
Show 26 variants
Use {
namespace: Option<String>,
database: Option<String>,
},
Signup {
credentials: Object,
},
Signin {
credentials: Object,
},
Authenticate {
token: Token,
},
Refresh {
token: Token,
},
Invalidate,
Begin,
Rollback {
txn: Uuid,
},
Commit {
txn: Uuid,
},
Revoke {
token: Token,
},
Query {
txn: Option<Uuid>,
query: Cow<'static, str>,
variables: Variables,
},
ExportFile {
path: PathBuf,
config: Option<DbExportConfig>,
},
ExportMl {
path: PathBuf,
config: MlExportConfig,
},
ExportBytes {
bytes: Sender<Result<Vec<u8>, Error>>,
config: Option<DbExportConfig>,
},
ExportBytesMl {
bytes: Sender<Result<Vec<u8>, Error>>,
config: MlExportConfig,
},
ImportFile {
path: PathBuf,
},
ImportMl {
path: PathBuf,
},
Health,
Version,
Set {
key: String,
value: Value,
},
Unset {
key: String,
},
SubscribeLive {
uuid: Uuid,
notification_sender: Sender<Result<Notification, Error>>,
},
Kill {
uuid: Uuid,
},
Attach {
session_id: Uuid,
},
Detach {
session_id: Uuid,
},
Run {
name: String,
version: Option<String>,
args: Array,
},
}Expand description
The operations an engine can be asked to perform.
Variants§
Use
Select the namespace and/or database for the session.
Fields
Signup
Sign up as a record user and authenticate the session.
Signin
Sign in and authenticate the session.
Authenticate
Authenticate the session with an existing token.
Refresh
Exchange a refresh token for a fresh token pair.
Invalidate
Drop the session’s authentication.
Begin
Begin a manual transaction.
Rollback
Cancel a manual transaction.
Commit
Commit a manual transaction.
Revoke
Invalidate a refresh token so it can no longer be redeemed.
Query
Execute a query, optionally inside a manual transaction.
Fields
ExportFile
Export the database to a file.
Fields
config: Option<DbExportConfig>What to include in the export.
ExportMl
Export a machine learning model to a file.
ExportBytes
Export the database to a channel.
Fields
config: Option<DbExportConfig>What to include in the export.
ExportBytesMl
Export a machine learning model to a channel.
Fields
config: MlExportConfigThe model to export.
ImportFile
Import a database export from a file.
ImportMl
Import a machine learning model from a file.
Health
Check that the engine is reachable.
Version
Report the database version.
Set
Set a session variable.
Unset
Remove a session variable.
SubscribeLive
Register the channel a live query’s notifications are delivered on.
Fields
notification_sender: Sender<Result<Notification, Error>>Where notifications are delivered.
Kill
Kill a live query.
Attach
Adopt an existing remote session.
Detach
Release a remote session without ending it.
Run
Call a function or a machine learning model.