pub struct QuackConfig {
pub enabled: bool,
pub uri: String,
pub token: Option<String>,
pub allow_other_hostname: bool,
pub read_only: bool,
}Expand description
Experimental DuckDB Quack remote protocol server.
Quack exposes the DuckDB SQL surface of the in-process database. Keep it disabled unless you intentionally want DuckDB clients to attach/query this process directly.
Fields§
§enabled: boolInstall/load the Quack extension and start quack_serve after
datasets are registered.
uri: StringQuack URI to listen on. quack:localhost uses DuckDB’s default
port 9494.
token: Option<String>Optional explicit authentication token. If omitted, Quack generates one at startup and DataPress logs it once.
allow_other_hostname: boolAllow binding a non-local hostname such as quack:0.0.0.0:9494.
For external exposure, put a TLS-terminating reverse proxy in front.
read_only: boolInstall a read-only authorization macro for remote queries. Enabled by default to match DataPress’ read-oriented HTTP API.
Implementations§
Source§impl QuackConfig
impl QuackConfig
Sourcepub fn validate_enabled(&self) -> Result<(), AppError>
pub fn validate_enabled(&self) -> Result<(), AppError>
Validate the enabled Quack configuration against DuckDB’s current
safety rules. The extension treats only the literal localhost as
local unless allow_other_hostname is set.
Trait Implementations§
Source§impl Clone for QuackConfig
impl Clone for QuackConfig
Source§fn clone(&self) -> QuackConfig
fn clone(&self) -> QuackConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more