Skip to main content

Module config

Module config 

Source
Expand description

Config-domain natives. Wraps server::command::{GetConfig, GetVersion, GetBuildDate, SetConfig}.

get-version and get-build-date are the first server-command bindings the rpc layer ships. Both return a CmdResult::String(...) from a body that just reads env!-baked constants — no DB, no user_id, no real async work — so they exercise the marshalling shape without yet needing a tokio runtime or pool. The remaining commands wait until DB-touching infrastructure (ScriptCtx::pool, sqlx::test fixtures) lands.

select-column is deliberately NOT exposed here: it runs caller-supplied field/table against the global admin connection, so a script-callable native would let any authenticated session read outside its user boundary. It stays a CLI-only escape hatch (sql selcol, direct dispatch).

Constants§

REGISTERED_COMMANDS

Functions§

register