Skip to main content

Universal data object model for SQL, NoSQL, graph, vector, and AI databases.

Project description

dbduck (UDOM Core)

dbduck is a universal data object model for SQL, NoSQL, graph, vector, and AI databases.

Define data once, query anywhere.

What It Does

dbduck (implemented here as UDOM) provides one consistent interface for working across multiple database types:

  • SQL: SQLite, MySQL, PostgreSQL, MariaDB
  • NoSQL: MongoDB and document-style stores
  • Graph: Neo4j and graph backends
  • Extensible path for vector and AI-native data workflows

Core Interface

  • query(sql): run native queries on supported backends
  • uexecute(uql): run universal query language (UQL) operations

Install

pip install -r requirements.txt

Quick Example

from udom import UDOM

# MySQL example

db = UDOM(
    db_type="mysql",
    url="mysql+pymysql://root:password@localhost:3306/udom"
)

# Native query
print(db.query("SELECT * FROM `User`;"))

# UQL create and read

db.uexecute('CREATE User {name: "Veeresh", age: 23, active: true}')
print(db.uexecute("FIND User WHERE age > 21"))

More examples are available in examples/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbduck-0.0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbduck-0.0.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file dbduck-0.0.1.tar.gz.

File metadata

  • Download URL: dbduck-0.0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for dbduck-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f463bad47f8a65ff5871db21a560cea84a02b0fc3fc2784f1b43982803e51501
MD5 8d64f8619829753cc09e7ad31c6f73ff
BLAKE2b-256 69604067298e289257a8348edc60f841626944544060ea38e074d0d771a1d3ff

See more details on using hashes here.

File details

Details for the file dbduck-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dbduck-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for dbduck-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd80c79feaf66c9e21d37b142c653a53aaba031c8c9ad40829bd7e31aa049111
MD5 fd2766b5dd36b2da0e4704788255af5a
BLAKE2b-256 7a36483c49433edd24cd6a2fc410d1c37822c1f80b1e432ce5b9085ff08bb2e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page