Skip to main content

Crate ferrule_core

Crate ferrule_core 

Source
Expand description

ferrule-core — the CLI-support layer over the ferrule-sql driver core.

The neutral Value/Row types, the DatabaseUrl parser, the Connection trait and its per-backend drivers, the connect dispatcher, transaction helpers, the cross-backend copy / bulk-load write path, the Dialect classifier, and the SqlError error type all live in ferrule_sql; import them from there. This crate keeps the layers that sit above the driver and pull in dependencies (tabled, csv, ferrule-config) that the embeddable SQL core deliberately avoids: result formatting, dump/load, the migration engine, EXPLAIN wrapping, connection resolution, and parameter substitution.

Re-exports§

pub use dump::dump_query;
pub use dump::dump_table;
pub use dump::DumpFormat;
pub use dump::DumpOptions;
pub use explain::explain_sql;
pub use explain::is_modifying;
pub use explain::ExplainOutput;
pub use formatter::format_result;
pub use formatter::OutputFormat;
pub use load::infer_schema;
pub use load::load_data;
pub use load::LoadFormat;
pub use load::LoadOptions;
pub use params::infer_type;
pub use params::load_from_json;
pub use params::parse_param;
pub use params::substitute;
pub use params::ParameterSet;
pub use redact::redact_sql;

Modules§

dump
explain
formatter
load
migrate
Lightweight, multi-backend SQL migration runner.
params
redact
Inline-secret redaction for SQL bodies (#49).
resolver
Connection resolution — URL, credentials, proxy, SSH config.