Skip to main content

datus-db-core

Core database abstractions for Datus adapters. Provides BaseSqlConnector, ConnectorRegistry, SQL parsing utilities, and shared models used by all database adapter packages.

Installation

pip install datus-db-core

Optional native SQL analysis

Adapters whose execution SDK does not expose a local SQLGlot AST can register sql_analyzer=callable alongside existing parser/identifier hooks. The callable accepts the original SQL and returns datus_db_core.sql_analysis.SQLAnalysis:

  • status: complete, unsupported, error, or incomplete.
  • sql_type: a SQLType; usable for dispatch only when analysis is complete.
  • tables: SQL identifiers with case and quoting preserved. Empty means no physical tables only for a complete analysis.
  • diagnostic: a safe explanation without SQL, credentials, or bound values.

Consumers use connector_registry.get_sql_analyzer(dialect) and analysis.require_complete() before trusting table facts. The default is None, retaining existing behavior. This is not a generator/transpilation or lineage contract. A compatible parser_dialect must not replace the adapter's namespace capabilities. No SDK dependencies or new abstract methods are added to other adapters. This optional API is introduced in db-core 0.1.8.

Metadata

Release files for datus-db-core 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datus-db-core 0.1.8
File Size Uploaded Provenance
datus_db_core-0.1.8.tar.gz 50.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for datus-db-core 0.1.8
File Interpreter ABI Platform
datus_db_core-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 90.1 kB

Release files / datus_db_core-0.1.8.tar.gz

Download URL datus_db_core-0.1.8.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9cba062d079534d0053002d95dbdefc2225b2329cf0220688d0d0c735cc93a24
BLAKE2b-256 checksum
How to use checksums
9960d9bc060a0c82e9b465d39e365d92f27f0cacdc9aa1a9113d97b96146efce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / datus_db_core-0.1.8-py3-none-any.whl

Download URL datus_db_core-0.1.8-py3-none-any.whl
Size 39.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3249485eb08477ccbbdb4895b87acb49ca4d50acda53b418f5aa1c7915a5dcb
BLAKE2b-256 checksum
How to use checksums
f4f4a58edf9e6e63baed363b4ae083d93b8e93a77618bb6af595d55a0bfab301
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for datus-db-core 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page