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.11

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.11
File Size Uploaded Provenance Actions
datus_db_core-0.1.11.tar.gz 56.3 kB Without provenance Details for datus_db_core-0.1.11.tar.gz

Built distribution (wheel)

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

Total release size: 100.2 kB

Release files / datus_db_core-0.1.11.tar.gz

Download URL datus_db_core-0.1.11.tar.gz
Size 56.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e283bf2cd23bfa6e5949eeca9544a3f81688f6850aff89aa262778de040b8796
BLAKE2b-256 checksum
How to use checksums
2a9abbd596d875c075d2754c60a26493654bbdd5a07c96a806ff74cf85e83f1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

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

Download URL datus_db_core-0.1.11-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69d61ae316dc9a8ae136878ae9b1aa21ff7aa88b26d774dcfe75b950a91e340f
BLAKE2b-256 checksum
How to use checksums
bbd8c96105efec6ecc5cb3f7355297ce9fb5d0058af4bf2b4b036ce05fdd4753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for datus-db-core 0.1.11

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