Skip to main content

Shared database access layer for Jiaofu AgentOS services

Project description

jiaofu-dbview

Shared database access package for Jiaofu AgentOS services.

The distribution name is jiaofu-dbview; the Python import name remains dbview, so existing application imports do not need to change:

from dbview.pys.dbview_dataset import DbViewDataset

Both the OceanBase and SQLite SQL definitions are included in the wheel. Runtime SQLite database files are deliberately not packaged.

Configuration is supplied explicitly by the caller; this package does not read service config files or environment variables:

from dbview import OceanBaseConfig, SQLiteConfig
from dbview.pys.dbview_dataset import DbViewDataset

oceanbase = DbViewDataset(
    "oceanbase",
    OceanBaseConfig(
        host="db.example.internal",
        port=2880,
        user="user",
        password="secret",
        database="tikumis",
    ),
)

sqlite = DbViewDataset("sqlite", SQLiteConfig(path="/data/sessions.db"))

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

jiaofu_dbview-0.2.2.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

jiaofu_dbview-0.2.2-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file jiaofu_dbview-0.2.2.tar.gz.

File metadata

  • Download URL: jiaofu_dbview-0.2.2.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for jiaofu_dbview-0.2.2.tar.gz
Algorithm Hash digest
SHA256 bb7322e18dcfd60e0a2e267af345ee03844db28bc4cbfff7ba0ab530e2f20b7f
MD5 ab94c150f658d9433dfcdaa91439eb47
BLAKE2b-256 9ec00239fca0fce84bc6d9ec1a2886a512c63b38f0801e25fc1884570b71fedf

See more details on using hashes here.

File details

Details for the file jiaofu_dbview-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: jiaofu_dbview-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 36.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for jiaofu_dbview-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d00876f0629552ad50c00113090a3fb90945a20888df424e3cda84f7439a3601
MD5 62d6efa55da4e11093a68ac2eee063e9
BLAKE2b-256 4be0789c5295d91b0a49fa9617d2884e251343bbb62f36824c9af65d4bfa2c26

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