quarry-db 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quarry/__init__.py +50 -0
- quarry/cli.py +810 -0
- quarry/core.py +1149 -0
- quarry/gui.py +1183 -0
- quarry/mcp.py +296 -0
- quarry/redis_engine.py +135 -0
- quarry/tunnel.py +147 -0
- quarry/workspace.py +151 -0
- quarry_db-0.2.0.dist-info/METADATA +240 -0
- quarry_db-0.2.0.dist-info/RECORD +13 -0
- quarry_db-0.2.0.dist-info/WHEEL +4 -0
- quarry_db-0.2.0.dist-info/entry_points.txt +3 -0
- quarry_db-0.2.0.dist-info/licenses/LICENSE +21 -0
quarry/__init__.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Quarry — 多引擎数据库查询内核,一核多脸(CLI / GUI / Skill)。
|
|
2
|
+
|
|
3
|
+
Library entry points (used by the GUI and any programmatic face):
|
|
4
|
+
|
|
5
|
+
from quarry import configure_workspace, load_connections, run_query
|
|
6
|
+
configure_workspace("~/my-workspace")
|
|
7
|
+
result = run_query(get_connection("shop"), "select 1 as ok")
|
|
8
|
+
print(result.to_dict())
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from .core import (
|
|
14
|
+
Connection,
|
|
15
|
+
Param,
|
|
16
|
+
QuarryError,
|
|
17
|
+
Query,
|
|
18
|
+
QueryResult,
|
|
19
|
+
connection_engine,
|
|
20
|
+
enforce_safety,
|
|
21
|
+
get_connection,
|
|
22
|
+
is_read_only,
|
|
23
|
+
list_all_queries,
|
|
24
|
+
load_connections,
|
|
25
|
+
load_query,
|
|
26
|
+
run_query,
|
|
27
|
+
)
|
|
28
|
+
from .workspace import Workspace, build_workspaces, configure_workspace
|
|
29
|
+
|
|
30
|
+
__version__ = "0.2.0"
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"__version__",
|
|
34
|
+
"Connection",
|
|
35
|
+
"Param",
|
|
36
|
+
"Query",
|
|
37
|
+
"QueryResult",
|
|
38
|
+
"QuarryError",
|
|
39
|
+
"Workspace",
|
|
40
|
+
"build_workspaces",
|
|
41
|
+
"configure_workspace",
|
|
42
|
+
"connection_engine",
|
|
43
|
+
"enforce_safety",
|
|
44
|
+
"get_connection",
|
|
45
|
+
"is_read_only",
|
|
46
|
+
"list_all_queries",
|
|
47
|
+
"load_connections",
|
|
48
|
+
"load_query",
|
|
49
|
+
"run_query",
|
|
50
|
+
]
|