Metadata-Version: 2.4
Name: jiaofu-dbview
Version: 0.2.2
Summary: Shared database access layer for Jiaofu AgentOS services
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: pymysql>=1.1.1

# 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:

```python
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:

```python
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"))
```
