marivo.datasource#
Project-level datasource authoring and management API.
Registration & lifecycle#
Open a context-manageable live ibis backend for a datasource. |
|
Context-manageable datasource backend connection. |
|
Create or replace a project datasource file from a DatasourceSpec. |
|
Represent a PEP 604 union type |
|
DuckDB datasource specification. |
|
SQLite datasource specification. |
|
Trino datasource specification. |
|
MySQL datasource specification. |
|
Postgres datasource specification. |
|
ClickHouse datasource specification. |
|
Load the project datasource catalog. |
|
List configured project datasources as a displayable DatasourceList. |
|
Delete the named project datasource file. |
|
Round-trip the backend and persist validated env secrets. |
Source constructors#
Build a typed DuckDB file source descriptor for CSV files. |
|
Declare one required runtime request parameter for a physical source. |
|
Build a typed DuckDB JSON physical-source descriptor. |
|
Build a DuckDB file source descriptor for Parquet files. |
|
Declare a DuckDB datasource. |
|
Declare a SQLite datasource. |
|
Declare a Postgres datasource. |
|
Declare a MySQL datasource. |
|
Declare a ClickHouse datasource. |
|
Declare a Trino datasource. |
|
Build a physical table source descriptor. |
|
Declare one typed physical identifier for a table column binding. |
Inspection & snapshots#
Inspect a physical source through metadata and system-catalog hooks only. |
|
Immutable bounded source evidence with query-free semantic projections. |
|
Run a bounded read-only SQL terminal diagnostic against a datasource. |
Scope helpers#
Build an explicitly partitioned authoring acquisition scope. |
|
Build a bounded half-open temporal acquisition scope. |
|
Build an explicitly unpruned authoring acquisition scope. |
Description#
python -m marivo help is an environment bootstrap only. Use the sole public
coordinator, marivo.help("datasource.<target>"), for bounded focused help
rendered from the datasource registry. The md namespace executes datasource
operations and intentionally has no md.help() alias. A
SourceInspection card points to
marivo.help("datasource.SourceInspection.sample") for the complete
single-process acquisition and query-free projection chain.
Show literal fields and env refs for one datasource. |
Catalog & refs#
Datasource identities use marivo.semantic.ref.datasource(...). The
datasource module accepts that exact ref at inspection and raw-SQL boundaries,
but does not define a second ref type.
Read-only catalog over configured project datasources. |
|
Displayable collection of configured project datasource summaries. |
|
Summary row for one configured project datasource. |
|
Literal fields and env refs for one datasource. |
Datasource vs source#
md.duckdb(...) and md.sqlite(...) declare datasources. md.table(...)
is the source descriptor for internal tables/views inside either datasource.
md.parquet(...) and md.csv(...) remain DuckDB file sources.
md.json(...) covers DuckDB JSON files and URLs, including a parameterized
JSON-body POST request. These sources are used with a datasource ref in inspection and
snapshot calls; they are not datasource declarations.
Metadata & sources#
Represent a PEP 604 union type |
|
One typed physical identifier in a projected table source. |
|
Explicit pruned selection and positive acquisition guards. |
|
Explicit unpruned acquisition with positive guards. |
Results#
md.raw_sql(...) returns a bounded terminal RawSqlResult. Its shape
and row_count describe returned bounded rows:
row_count == shape[0] == returned_row_count. Read
requested_limit and is_truncated alongside that count; it is not
full-source cardinality. Ordered columns and isolated to_pandas() are
available, but RawSqlResult has no contract(), typed affordances, or
typed-analysis re-entry.
Result of a datasource connectivity round-trip. |
|
Bounded structured cause for one failed datasource connection test. |