Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pyxis-harness-rdb

关系数据库工作台:SQLite / PostgreSQL / GaussDB / MySQL(MariaDB)。

项 值
条目 rdb(base bundle)
服务 RdbService,ctx.rdb
注入 tools、prompt、http
路由前缀 /api/rdb
数据 <profile data>/toolkit/rdb.json;密码在 profile 凭据库

文件

文件 内容
__init__.py 导出
service.py rdb 服务:profile、连接池、db_* 工具注册、提示词段
store.py 连接 profile 与 agent 访问设置
tools.py db_* LangChain 工具
routes.py 数据库页的 FastAPI 路由
engine.py 数据库引擎门面:再导出 sql、driver、sqlite、postgres、mysql、pool、query
driver.py 驱动契约:上限、结果形状、主机列表、Driver 基类、共用的 cursor 运行器
sqlite.py SQLite 驱动(标准库 sqlite3);语句超时经 progress handler
postgres.py PostgreSQL 与 GaussDB 驱动,经 psycopg 3
mysql.py MySQL 与 MariaDB 驱动,经 PyMySQL
pool.py 连接的打开(主机顺序、target_session_attrs)与按 profile 的 Pool
sql.py 语句文本:分类、切分、SQL 字面量、JSON 安全的值
query.py 驱动之上的引擎级操作:一条受保护的语句、表描述、分页行、表格编辑转 SQL、结果的 CSV 渲染与面向模型的渲染
config.toml 包数据;pyxis_harness.package_toml(__file__) 加载
prompts.toml 模型可见文本;pyxis_harness.package_prompts(__file__) 加载
client.js 浏览器模块

服务

成员 契约
store ProfileStore:连接 profile(密码在凭据库)、agent 访问设置
pool Pool:每个 profile 一个活动连接;空闲连接关闭
sync() agent 访问开启期间注册 db_* 工具与提示词段
配置 含义
path profile 文件;默认 <profile data>/toolkit/rdb.json
approval db_execute 的审批门;默认无

工具

项 契约
工具 db_connections、db_schema、db_query、db_explain、db_execute
形状 同 dsh-rdb
结果 给模型的文本
db_query 一条只读语句
db_execute 写入,在一个事务中;需要 confirm=true;只在标记为「允许 Agent 写入」的连接上

路由

项 内容
使用方 数据库页
路径 profiles、settings、test、schemas、tables、columns、ddl、rows、query、execute、changes、export.csv
rows 分页、过滤、排序
changes 表格编辑转成 SQL;先预览,后应用

存储(store.py)

项 位置
连接 profile、agent 访问设置 <profile data>/toolkit/rdb.json
密码 profile 凭据库,引用 RDB_<ID>

引擎

项 契约
驱动 同步的 DB-API 连接
执行 服务在工作线程中运行驱动
并发 每个连接同一时刻一条语句
门面(engine.py) 驱动(SQLite、PostgreSQL / GaussDB、MySQL / MariaDB)、语句分类、分页、表格变更、CSV
sql.py 契约
分类 只读与否
切分 按顶层分号
mysql 选用 MySQL 方言:反引号标识符、反斜杠转义、# 注释
值(sql.py 的 to_js) 到页面与工具的形式
数、布尔、文本、NULL 原样
二进制 {"$bytes": 长度}
Decimal 文本
日期时间对象 ISO 文本
列表、字典 逐项转换
PostgreSQL / GaussDB 的 date、timestamp、timestamptz、interval 契约
值 服务器发来的文本,不经日历换算:infinity、公元前日期、1 mon 原样
它们的数组 同样逐项为文本
表格变更的行定位 契约
依据 主键各列的值
表没有主键 拒绝
主键值为 NULL 或二进制 拒绝;页面里这一行只读

浏览器模块(client.js)

位置 内容
左侧栏「数据库」页 连接、对象树、数据表格(行内编辑以 SQL 应用)、结构、SQL 编辑器、CSV 导出、agent 访问开关
数据表格的待保存改动(gridState) 契约
行标识 主键各列的值,按主键顺序,JSON 文本;数与同形文本不同
edits 行标识 → {key, values}:该行的主键与改动的单元格
deletes、selected 行标识 → 该行的主键
inserts 新增行的列表:{values, nulls}
单元格改回载入时的值 离开 edits;没有改动单元格的行离开 edits
翻页、排序、过滤、刷新 保留;显示在载有该行的页上
改动数 edits、inserts、deletes 的条数之和,含不在当前页的行
「删除所选」 selected 全部移入 deletes,含不在当前页的行
「保存改动」 发送全部改动,key 为记录下的主键;同时被编辑与删除的行只发删除;成功后清空并重新加载当前页
「放弃」 清空四项
切换表或连接 清空四项
主键值为 NULL 或二进制的行 无行标识:不可编辑,不可选

Metadata

Release files for pyxis-harness-rdb 0.1.1.dev10

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

Source distribution (sdist)

Source distribution for pyxis-harness-rdb 0.1.1.dev10
File Size Uploaded Provenance Actions
pyxis_harness_rdb-0.1.1.dev10.tar.gz 39.9 kB Without provenance Details for pyxis_harness_rdb-0.1.1.dev10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyxis-harness-rdb 0.1.1.dev10
File Interpreter ABI Platform Actions
pyxis_harness_rdb-0.1.1.dev10-py3-none-any.whl Python 3 none any Details for pyxis_harness_rdb-0.1.1.dev10-py3-none-any.whl

Total release size: 90.7 kB

Release files / pyxis_harness_rdb-0.1.1.dev10.tar.gz

Download URL pyxis_harness_rdb-0.1.1.dev10.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cfc0e7779c59d28dccdb45f94119d103faa470ef1baeffa5bef540e079c29916
BLAKE2b-256 checksum
How to use checksums
1025955aa576984c9acd21c45f54089999eedc2b6497750423317e1c12ae389a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pyxis_harness_rdb-0.1.1.dev10-py3-none-any.whl

Download URL pyxis_harness_rdb-0.1.1.dev10-py3-none-any.whl
Size 50.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c835016613f9fde55d8dac1800d4e64bd92f9381c7bb10aba991c5b283b230ab
BLAKE2b-256 checksum
How to use checksums
e08f56a62c185cde71535fe1582530307c67cf8bf0941c5d0f70d5d98157e086
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pyxis-harness-rdb 0.1.1.dev10

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