pub struct Cli {Show 55 fields
pub db: String,
pub query: Option<String>,
pub query_arg: Option<String>,
pub trace: bool,
pub indexed_lookups: bool,
pub auto_create_missing_references: bool,
pub structure: Option<u32>,
pub before: bool,
pub changes: bool,
pub after: bool,
pub lino_input: Option<String>,
pub lino_output: Option<String>,
pub binary_input: Option<String>,
pub binary_output: Option<String>,
pub always: bool,
pub once: bool,
pub never: bool,
pub triggers: bool,
pub triggers_file: Option<String>,
pub embed_triggers: bool,
pub transactions: bool,
pub transactions_file: Option<String>,
pub commit_mode: Option<String>,
pub retention: Option<String>,
pub vc: bool,
pub vc_file: Option<String>,
pub branch: Option<String>,
pub branch_from: Option<i64>,
pub checkout: Option<String>,
pub tag: Option<String>,
pub list_branches: bool,
pub list_tags: bool,
pub show_log: bool,
pub serve: Option<String>,
pub serve_also: Vec<String>,
pub forward: Option<String>,
pub graphql: bool,
pub jwt_secret: Option<String>,
pub graphql_admin_secret: Option<String>,
pub deep_packages: Vec<String>,
pub connect: Option<String>,
pub protocol: Option<String>,
pub external_references: bool,
pub arity: ArityRange,
pub packed_widths: bool,
pub triplets: bool,
pub permissions: Option<String>,
pub subject: Option<String>,
pub tokens: Option<String>,
pub grant_token: Option<String>,
pub revoke_token: Option<String>,
pub token: Option<String>,
pub lock: Option<String>,
pub lock_timeout: Option<String>,
pub lock_status: bool,
}Fields§
§db: String§query: Option<String>§query_arg: Option<String>§trace: bool§indexed_lookups: bool§auto_create_missing_references: bool§structure: Option<u32>§before: bool§changes: bool§after: bool§lino_input: Option<String>§lino_output: Option<String>§binary_input: Option<String>§binary_output: Option<String>§always: bool§once: bool§never: bool§triggers: bool§triggers_file: Option<String>§embed_triggers: bool§transactions: bool§transactions_file: Option<String>§commit_mode: Option<String>§retention: Option<String>§vc: bool§vc_file: Option<String>§branch: Option<String>§branch_from: Option<i64>§checkout: Option<String>§tag: Option<String>§list_branches: bool§show_log: bool§serve: Option<String>The first --serve endpoint, such as 127.0.0.1:7878 or
unix:/tmp/links.sock (issue #140).
serve_also: Vec<String>Every later --serve endpoint: one server listens on all of them.
forward: Option<String>--forward: relay each --serve connection to this endpoint, byte
for byte, instead of serving a database (issue #140).
graphql: bool--graphql: --serve speaks Hasura’s GraphQL for Deep (issue #153).
jwt_secret: Option<String>--jwt-secret: signs the tokens of --graphql; random when absent.
graphql_admin_secret: Option<String>--graphql-admin-secret: what x-hasura-admin-secret must be.
deep_packages: Vec<String>--deep-package: Deep links, as JSON rows, to load before serving.
connect: Option<String>§protocol: Option<String>§external_references: bool§arity: ArityRange§packed_widths: bool§triplets: bool--triplets: --serve reads every request as triplets (issue #152).
permissions: Option<String>--permissions: self or a links file of permission rules (issue #149).
subject: Option<String>--subject: the link index or name queries run as.
tokens: Option<String>--tokens: self or a links file of the token table.
grant_token: Option<String>§revoke_token: Option<String>§token: Option<String>--token: authenticates a --connect client.
lock: Option<String>--lock (--no-lock is none), --lock-timeout and --lock-status;
see crate::store_lock.
lock_timeout: Option<String>§lock_status: boolImplementations§
Source§impl Cli
impl Cli
Sourcepub fn transactions_requested(&self) -> bool
pub fn transactions_requested(&self) -> bool
True when any flag in the transactions decorator family was passed.
Sourcepub fn trigger_command_count(&self) -> usize
pub fn trigger_command_count(&self) -> usize
True when a trigger command — --always, --once or --never — was
passed. Exactly one of them may be used at a time.
Sourcepub fn persistent_transformations_requested(&self) -> bool
pub fn persistent_transformations_requested(&self) -> bool
True when any flag in the persistent transformation family was passed.
Mirrors persistentTransformationsEnabled in the C# tool, minus the
“the triggers file already exists” clause, which needs the resolved
path and therefore lives next to it in main.
Sourcepub fn serve_endpoints(&self) -> Vec<&str>
pub fn serve_endpoints(&self) -> Vec<&str>
Every --serve endpoint, in the order given.
Sourcepub fn vc_requested(&self) -> bool
pub fn vc_requested(&self) -> bool
True when any flag in the version-control decorator family was passed.