dbgraph 0.2.7__tar.gz → 0.2.9__tar.gz
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.
- dbgraph-0.2.9/.idea/codeStyles/codeStyleConfig.xml +5 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.idea/dbgraph.iml +1 -1
- dbgraph-0.2.9/.idea/pydantic.xml +6 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.idea/workspace.xml +90 -43
- {dbgraph-0.2.7 → dbgraph-0.2.9}/PKG-INFO +14 -13
- dbgraph-0.2.9/data/northwind-index/data.csc.index.npy +0 -0
- dbgraph-0.2.9/data/northwind-index/indices.csc.index.npy +0 -0
- dbgraph-0.2.9/data/northwind-index/indptr.csc.index.npy +0 -0
- dbgraph-0.2.9/data/northwind-index/vocab.index.json +1 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/__init__.py +2 -2
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/builder/sql_graph_builder.py +160 -49
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/descriptor/langchain_graph_descriptor.py +2 -6
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/aspect.py +8 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/asset.py +9 -1
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/dbgraph.py +19 -8
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/link.py +11 -3
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/rdbgraph.py +5 -3
- dbgraph-0.2.9/dbgraph/persistent/graph_not_found.py +6 -0
- dbgraph-0.2.9/dbgraph/persistent/graph_persistent.py +71 -0
- dbgraph-0.2.9/dbgraph/persistent/models/asset_aspect_orm.py +20 -0
- dbgraph-0.2.9/dbgraph/persistent/models/asset_orm.py +25 -0
- dbgraph-0.2.9/dbgraph/persistent/models/base.py +5 -0
- dbgraph-0.2.9/dbgraph/persistent/models/graph_orm.py +20 -0
- dbgraph-0.2.9/dbgraph/persistent/models/link_aspect_orm.py +20 -0
- dbgraph-0.2.9/dbgraph/persistent/models/link_orm.py +31 -0
- dbgraph-0.2.9/dbgraph/persistent/orm_graph_persistent.py +237 -0
- dbgraph-0.2.9/dbgraph/utils/logging.py +10 -0
- dbgraph-0.2.9/dbgraph/utils/serialize.py +33 -0
- dbgraph-0.2.9/dbgraph.log +140 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/pyproject.toml +37 -36
- dbgraph-0.2.9/tests/__init__.py +0 -0
- dbgraph-0.2.9/tests/integrates/__init__.py +0 -0
- {dbgraph-0.2.7/tests → dbgraph-0.2.9/tests/integrates}/test_sql_graph_builder.py +1 -1
- dbgraph-0.2.9/tests/integrates/test_trino_builder.py +96 -0
- dbgraph-0.2.9/tests/units/__init__.py +0 -0
- dbgraph-0.2.9/tests/units/dbgraph.log +0 -0
- dbgraph-0.2.9/tests/units/test_markdown_renderer.py +89 -0
- dbgraph-0.2.7/tests/test_sql_graph_persistent.py → dbgraph-0.2.9/tests/units/test_orm_graph_persistent.py +86 -175
- {dbgraph-0.2.7 → dbgraph-0.2.9}/uv.lock +322 -240
- dbgraph-0.2.7/data/northwind-index/data.csc.index.npy +0 -0
- dbgraph-0.2.7/data/northwind-index/indices.csc.index.npy +0 -0
- dbgraph-0.2.7/data/northwind-index/indptr.csc.index.npy +0 -0
- dbgraph-0.2.7/data/northwind-index/vocab.index.json +0 -1
- dbgraph-0.2.7/dbgraph/application.py +0 -70
- dbgraph-0.2.7/dbgraph/persistent/graph_persistent.py +0 -98
- dbgraph-0.2.7/dbgraph/persistent/json_utils.py +0 -34
- dbgraph-0.2.7/dbgraph/persistent/models.py +0 -228
- dbgraph-0.2.7/dbgraph/persistent/sql_graph_persistent.py +0 -402
- dbgraph-0.2.7/tests/test_application.py +0 -56
- dbgraph-0.2.7/tests/test_bm25s_search_engine.py +0 -31
- dbgraph-0.2.7/tests/test_load_graph_sql.py +0 -21
- dbgraph-0.2.7/tests/test_markdown_renderer.py +0 -20
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.gitignore +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.idea/.gitignore +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.idea/misc.xml +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.idea/modules.xml +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.idea/vcs.xml +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/.python-version +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/README.md +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-desc.md +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-graph-import.db +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-graph-v2.json +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-graph-v4.json +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-graph.db +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-graph.json +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-graph.png +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-index/corpus.jsonl +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-index/corpus.mmindex.json +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-index/params.index.json +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind-semantic-v5.json +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/northwind.db +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/data/time-results.txt +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/builder/__init__.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/builder/graph_builder.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/descriptor/__init__.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/descriptor/graph_descriptor.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/descriptor/prompt_templates.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/__init__.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/asset_type.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/entity/link_type.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/io/__init__.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/io/graph_loader.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/io/graph_writer.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/io/json_graph_loader.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/io/json_graph_writer.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/persistent/__init__.py +0 -0
- {dbgraph-0.2.7/dbgraph/render → dbgraph-0.2.9/dbgraph/persistent/models}/__init__.py +0 -0
- {dbgraph-0.2.7/dbgraph/search → dbgraph-0.2.9/dbgraph/render}/__init__.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/render/graph_renderer.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/render/markdown_renderer.py +0 -0
- {dbgraph-0.2.7/dbgraph/utils → dbgraph-0.2.9/dbgraph/search}/__init__.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/search/bm25_search_engine.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/search/search_engine.py +0 -0
- {dbgraph-0.2.7/tests → dbgraph-0.2.9/dbgraph/utils}/__init__.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/dbgraph/utils/singleton.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/diagrams/entity.png +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/diagrams/entity.txt +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/diagrams/usecase.png +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/diagrams/usecase.txt +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/docs/index.md +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/docs/refs/aspect.md +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/docs/refs/graph.md +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/main.py +0 -0
- {dbgraph-0.2.7 → dbgraph-0.2.9}/mkdocs.yml +0 -0
- {dbgraph-0.2.7/tests → dbgraph-0.2.9/tests/integrates}/test_json_graph_loader.py +0 -0
- {dbgraph-0.2.7/tests → dbgraph-0.2.9/tests/integrates}/test_json_graph_writer.py +0 -0
- {dbgraph-0.2.7/tests → dbgraph-0.2.9/tests/integrates}/test_langchain_graph_descriptor.py +0 -0
- {dbgraph-0.2.7/tests → dbgraph-0.2.9/tests/units}/test_dbgraph.py +0 -0
- {dbgraph-0.2.7/tests → dbgraph-0.2.9/tests/units}/test_rdbgraph.py +0 -0
|
@@ -4,16 +4,13 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="263a96da-9a82-40fd-89b2-ba71dd2c194d" name="Changes" comment="update
|
|
8
|
-
<change beforePath="$PROJECT_DIR
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/data/northwind-index/vocab.index.json" beforeDir="false" afterPath="$PROJECT_DIR$/data/northwind-index/vocab.index.json" afterDir="false" />
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/dbgraph/persistent/models.py" beforeDir="false" afterPath="$PROJECT_DIR$/dbgraph/persistent/models.py" afterDir="false" />
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/dbgraph/persistent/sql_graph_persistent.py" beforeDir="false" afterPath="$PROJECT_DIR$/dbgraph/persistent/sql_graph_persistent.py" afterDir="false" />
|
|
7
|
+
<list default="true" id="263a96da-9a82-40fd-89b2-ba71dd2c194d" name="Changes" comment="update sql builder and tests">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/.idea/dbgraph.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/dbgraph.iml" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/dbgraph/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/dbgraph/__init__.py" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/dbgraph/entity/aspect.py" beforeDir="false" afterPath="$PROJECT_DIR$/dbgraph/entity/aspect.py" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/dbgraph/persistent/orm_graph_persistent.py" beforeDir="false" afterPath="$PROJECT_DIR$/dbgraph/persistent/orm_graph_persistent.py" afterDir="false" />
|
|
15
12
|
<change beforePath="$PROJECT_DIR$/pyproject.toml" beforeDir="false" afterPath="$PROJECT_DIR$/pyproject.toml" afterDir="false" />
|
|
16
|
-
<change beforePath="$PROJECT_DIR$/tests/
|
|
13
|
+
<change beforePath="$PROJECT_DIR$/tests/units/test_orm_graph_persistent.py" beforeDir="false" afterPath="$PROJECT_DIR$/tests/units/test_orm_graph_persistent.py" afterDir="false" />
|
|
17
14
|
<change beforePath="$PROJECT_DIR$/uv.lock" beforeDir="false" afterPath="$PROJECT_DIR$/uv.lock" afterDir="false" />
|
|
18
15
|
</list>
|
|
19
16
|
<option name="SHOW_DIALOG" value="false" />
|
|
@@ -32,7 +29,7 @@
|
|
|
32
29
|
<component name="Git.Settings">
|
|
33
30
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
34
31
|
<map>
|
|
35
|
-
<entry key="$PROJECT_DIR$" value="
|
|
32
|
+
<entry key="$PROJECT_DIR$" value="main" />
|
|
36
33
|
</map>
|
|
37
34
|
</option>
|
|
38
35
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
@@ -59,6 +56,9 @@
|
|
|
59
56
|
"repository": "dbgraph"
|
|
60
57
|
}
|
|
61
58
|
}</component>
|
|
59
|
+
<component name="ProblemsViewState">
|
|
60
|
+
<option name="selectedTabId" value="ProjectErrors" />
|
|
61
|
+
</component>
|
|
62
62
|
<component name="ProjectColorInfo">{
|
|
63
63
|
"associatedIndex": 0,
|
|
64
64
|
"fromUser": false
|
|
@@ -75,30 +75,79 @@
|
|
|
75
75
|
"keyToString": {
|
|
76
76
|
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
|
77
77
|
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
78
|
+
"Python tests.Python tests for tests.integrates.test_json_graph_loader.TestJSONGraphLoader.executor": "Run",
|
|
79
|
+
"Python tests.Python tests for tests.integrates.test_sql_graph_builder.TestSQLGraphBuilder.executor": "Run",
|
|
80
|
+
"Python tests.Python tests for tests.integrates.test_sql_graph_builder.TestSQLGraphBuilder.test_build_graph.executor": "Run",
|
|
81
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_cat_stats_aspect.executor": "Run",
|
|
82
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_columns.executor": "Run",
|
|
83
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_columns_orm.executor": "Run",
|
|
84
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_null_info.executor": "Run",
|
|
85
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_numerical_stats_aspect.executor": "Run",
|
|
86
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_orm.executor": "Run",
|
|
87
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_row_count.executor": "Run",
|
|
88
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_temp_aspect.executor": "Run",
|
|
89
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__is_column_textual.executor": "Run",
|
|
90
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test_build_graph.executor": "Run",
|
|
91
|
+
"Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test_table_names.executor": "Run",
|
|
78
92
|
"Python tests.Python tests for tests.test_dbgraph.TestDBGraph.executor": "Run",
|
|
93
|
+
"Python tests.Python tests for tests.test_json_graph_loader.TestJSONGraphLoader.executor": "Run",
|
|
79
94
|
"Python tests.Python tests for tests.test_json_graph_loader.TestJSONGraphLoader.test_get_neighbors_sub_graph.executor": "Run",
|
|
80
95
|
"Python tests.Python tests for tests.test_load_graph_sql.TestLoadGraphSQL.test_load.executor": "Run",
|
|
96
|
+
"Python tests.Python tests for tests.test_markdown_renderer.TestMarkdownRenderer.executor": "Run",
|
|
97
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.executor": "Run",
|
|
98
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_cr_asset_aspect.executor": "Run",
|
|
99
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_cr_link_aspect.executor": "Run",
|
|
100
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_crud_assets.executor": "Run",
|
|
101
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_crud_links.executor": "Run",
|
|
102
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_insert_assets.executor": "Run",
|
|
103
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_insert_graph.executor": "Run",
|
|
104
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_insert_links.executor": "Run",
|
|
105
|
+
"Python tests.Python tests for tests.test_orm_graph_persistent.TestORMGraphPersistent.test_save_load_graph.executor": "Run",
|
|
106
|
+
"Python tests.Python tests for tests.test_rdbgraph.TestRDBGraph.executor": "Run",
|
|
81
107
|
"Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.executor": "Run",
|
|
82
108
|
"Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.test__build_links.executor": "Run",
|
|
83
109
|
"Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.test_build_graph.executor": "Run",
|
|
84
110
|
"Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.executor": "Run",
|
|
111
|
+
"Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_asset.executor": "Run",
|
|
85
112
|
"Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_delete_graph.executor": "Run",
|
|
113
|
+
"Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_link.executor": "Run",
|
|
86
114
|
"Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_load_graph.executor": "Run",
|
|
87
115
|
"Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_save_graph.executor": "Run",
|
|
88
116
|
"Python tests.Python tests in test_load_graph_sql.py.executor": "Run",
|
|
117
|
+
"Python tests.Python tests in test_trino_builder.py.executor": "Run",
|
|
89
118
|
"Python tests.Python tests in tests.executor": "Run",
|
|
119
|
+
"Python tests.Python tests in units.executor": "Run",
|
|
90
120
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
91
121
|
"RunOnceActivity.git.unshallow": "true",
|
|
92
122
|
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
93
123
|
"codeWithMe.voiceChat.enabledByDefault": "false",
|
|
94
|
-
"git-widget-placeholder": "
|
|
124
|
+
"git-widget-placeholder": "optimize-queries",
|
|
95
125
|
"ignore.virus.scanning.warn.message": "true",
|
|
126
|
+
"node.js.detected.package.eslint": "true",
|
|
127
|
+
"node.js.detected.package.jshint": "true",
|
|
128
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
129
|
+
"node.js.selected.package.jshint": "",
|
|
96
130
|
"nodejs_package_manager_path": "npm",
|
|
97
|
-
"
|
|
131
|
+
"run.code.analysis.last.selected.profile": "aDefault",
|
|
132
|
+
"settings.editor.selected.configurable": "preferences.PingConfigurable"
|
|
98
133
|
}
|
|
99
134
|
}</component>
|
|
100
|
-
<component name="
|
|
101
|
-
<
|
|
135
|
+
<component name="PyConsoleOptionsProvider">
|
|
136
|
+
<option name="myPythonConsoleState">
|
|
137
|
+
<console-settings module-name="dbgraph" is-module-sdk="true">
|
|
138
|
+
<option name="myUseModuleSdk" value="true" />
|
|
139
|
+
<option name="myModuleName" value="dbgraph" />
|
|
140
|
+
</console-settings>
|
|
141
|
+
</option>
|
|
142
|
+
</component>
|
|
143
|
+
<component name="RecentsManager">
|
|
144
|
+
<key name="MoveFile.RECENT_KEYS">
|
|
145
|
+
<recent name="C:\Users\minhden\Projects\dbgraph\tests\integrates" />
|
|
146
|
+
<recent name="C:\Users\minhden\Projects\dbgraph\tests\units" />
|
|
147
|
+
</key>
|
|
148
|
+
</component>
|
|
149
|
+
<component name="RunManager" selected="Python tests.Python tests in units">
|
|
150
|
+
<configuration name="Python tests for tests.integrates.test_sql_graph_builder.TestSQLGraphBuilder.test_build_graph" type="tests" factoryName="Autodetect" temporary="true" nameIsGenerated="true">
|
|
102
151
|
<module name="dbgraph" />
|
|
103
152
|
<option name="ENV_FILES" value="" />
|
|
104
153
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -111,11 +160,11 @@
|
|
|
111
160
|
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
112
161
|
<option name="RUN_TOOL" value="" />
|
|
113
162
|
<option name="_new_additionalArguments" value="""" />
|
|
114
|
-
<option name="_new_target" value=""tests.
|
|
163
|
+
<option name="_new_target" value=""tests.integrates.test_sql_graph_builder.TestSQLGraphBuilder.test_build_graph"" />
|
|
115
164
|
<option name="_new_targetType" value=""PYTHON"" />
|
|
116
165
|
<method v="2" />
|
|
117
166
|
</configuration>
|
|
118
|
-
<configuration name="Python tests for tests.
|
|
167
|
+
<configuration name="Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_orm" type="tests" factoryName="Autodetect" temporary="true" nameIsGenerated="true">
|
|
119
168
|
<module name="dbgraph" />
|
|
120
169
|
<option name="ENV_FILES" value="" />
|
|
121
170
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -128,11 +177,11 @@
|
|
|
128
177
|
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
129
178
|
<option name="RUN_TOOL" value="" />
|
|
130
179
|
<option name="_new_additionalArguments" value="""" />
|
|
131
|
-
<option name="_new_target" value=""tests.
|
|
180
|
+
<option name="_new_target" value=""tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_orm"" />
|
|
132
181
|
<option name="_new_targetType" value=""PYTHON"" />
|
|
133
182
|
<method v="2" />
|
|
134
183
|
</configuration>
|
|
135
|
-
<configuration name="Python tests for tests.
|
|
184
|
+
<configuration name="Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_row_count" type="tests" factoryName="Autodetect" temporary="true" nameIsGenerated="true">
|
|
136
185
|
<module name="dbgraph" />
|
|
137
186
|
<option name="ENV_FILES" value="" />
|
|
138
187
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -145,11 +194,11 @@
|
|
|
145
194
|
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
146
195
|
<option name="RUN_TOOL" value="" />
|
|
147
196
|
<option name="_new_additionalArguments" value="""" />
|
|
148
|
-
<option name="_new_target" value=""tests.
|
|
197
|
+
<option name="_new_target" value=""tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_row_count"" />
|
|
149
198
|
<option name="_new_targetType" value=""PYTHON"" />
|
|
150
199
|
<method v="2" />
|
|
151
200
|
</configuration>
|
|
152
|
-
<configuration name="Python tests for tests.
|
|
201
|
+
<configuration name="Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test_build_graph" type="tests" factoryName="Autodetect" temporary="true" nameIsGenerated="true">
|
|
153
202
|
<module name="dbgraph" />
|
|
154
203
|
<option name="ENV_FILES" value="" />
|
|
155
204
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -160,36 +209,36 @@
|
|
|
160
209
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
161
210
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
162
211
|
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
163
|
-
<option name="RUN_TOOL" value="" />
|
|
212
|
+
<option name="RUN_TOOL" value="true" />
|
|
164
213
|
<option name="_new_additionalArguments" value="""" />
|
|
165
|
-
<option name="_new_target" value=""tests.
|
|
214
|
+
<option name="_new_target" value=""tests.integrates.test_trino_builder.TestTrinoBuilder.test_build_graph"" />
|
|
166
215
|
<option name="_new_targetType" value=""PYTHON"" />
|
|
167
216
|
<method v="2" />
|
|
168
217
|
</configuration>
|
|
169
|
-
<configuration name="Python tests in
|
|
218
|
+
<configuration name="Python tests in units" type="tests" factoryName="Autodetect" temporary="true" nameIsGenerated="true">
|
|
170
219
|
<module name="dbgraph" />
|
|
171
220
|
<option name="ENV_FILES" value="" />
|
|
172
221
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
173
222
|
<option name="PARENT_ENVS" value="true" />
|
|
174
223
|
<option name="SDK_HOME" value="" />
|
|
175
|
-
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/tests" />
|
|
224
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/tests/units" />
|
|
176
225
|
<option name="IS_MODULE_SDK" value="true" />
|
|
177
226
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
178
227
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
179
228
|
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
180
229
|
<option name="RUN_TOOL" value="" />
|
|
181
230
|
<option name="_new_additionalArguments" value="""" />
|
|
182
|
-
<option name="_new_target" value=""$PROJECT_DIR$/tests"" />
|
|
231
|
+
<option name="_new_target" value=""$PROJECT_DIR$/tests/units"" />
|
|
183
232
|
<option name="_new_targetType" value=""PATH"" />
|
|
184
233
|
<method v="2" />
|
|
185
234
|
</configuration>
|
|
186
235
|
<recent_temporary>
|
|
187
236
|
<list>
|
|
188
|
-
<item itemvalue="Python tests.Python tests
|
|
189
|
-
<item itemvalue="Python tests.Python tests for tests.
|
|
190
|
-
<item itemvalue="Python tests.Python tests
|
|
191
|
-
<item itemvalue="Python tests.Python tests for tests.
|
|
192
|
-
<item itemvalue="Python tests.Python tests for tests.
|
|
237
|
+
<item itemvalue="Python tests.Python tests in units" />
|
|
238
|
+
<item itemvalue="Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_orm" />
|
|
239
|
+
<item itemvalue="Python tests.Python tests for tests.integrates.test_sql_graph_builder.TestSQLGraphBuilder.test_build_graph" />
|
|
240
|
+
<item itemvalue="Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test__get_table_row_count" />
|
|
241
|
+
<item itemvalue="Python tests.Python tests for tests.integrates.test_trino_builder.TestTrinoBuilder.test_build_graph" />
|
|
193
242
|
</list>
|
|
194
243
|
</recent_temporary>
|
|
195
244
|
</component>
|
|
@@ -288,7 +337,15 @@
|
|
|
288
337
|
<option name="project" value="LOCAL" />
|
|
289
338
|
<updated>1788937586437</updated>
|
|
290
339
|
</task>
|
|
291
|
-
<
|
|
340
|
+
<task id="LOCAL-00011" summary="update sql builder and tests">
|
|
341
|
+
<option name="closed" value="true" />
|
|
342
|
+
<created>1790214726709</created>
|
|
343
|
+
<option name="number" value="00011" />
|
|
344
|
+
<option name="presentableId" value="LOCAL-00011" />
|
|
345
|
+
<option name="project" value="LOCAL" />
|
|
346
|
+
<updated>1790214726709</updated>
|
|
347
|
+
</task>
|
|
348
|
+
<option name="localTasksCounter" value="12" />
|
|
292
349
|
<servers />
|
|
293
350
|
</component>
|
|
294
351
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -311,17 +368,7 @@
|
|
|
311
368
|
<MESSAGE value="format" />
|
|
312
369
|
<MESSAGE value="remove events" />
|
|
313
370
|
<MESSAGE value="update renderer" />
|
|
314
|
-
<
|
|
315
|
-
|
|
316
|
-
<component name="XDebuggerManager">
|
|
317
|
-
<breakpoint-manager>
|
|
318
|
-
<breakpoints>
|
|
319
|
-
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
|
|
320
|
-
<url>file://$PROJECT_DIR$/dbgraph/persistent/sql_graph_persistent.py</url>
|
|
321
|
-
<line>360</line>
|
|
322
|
-
<option name="timeStamp" value="5" />
|
|
323
|
-
</line-breakpoint>
|
|
324
|
-
</breakpoints>
|
|
325
|
-
</breakpoint-manager>
|
|
371
|
+
<MESSAGE value="update sql builder and tests" />
|
|
372
|
+
<option name="LAST_COMMIT_MESSAGE" value="update sql builder and tests" />
|
|
326
373
|
</component>
|
|
327
374
|
</project>
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: dbgraph
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.9
|
|
4
4
|
Summary: dbgraph is a database profiling tool which model the database as a graph
|
|
5
5
|
Requires-Python: >=3.11
|
|
6
|
-
Requires-Dist: bm25s
|
|
7
|
-
Requires-Dist: build
|
|
6
|
+
Requires-Dist: bm25s==0.3.11
|
|
7
|
+
Requires-Dist: build==1.6.1
|
|
8
8
|
Requires-Dist: grip>=4.6.2
|
|
9
|
-
Requires-Dist: langchain-openai
|
|
10
|
-
Requires-Dist: langchain
|
|
11
|
-
Requires-Dist: matplotlib
|
|
9
|
+
Requires-Dist: langchain-openai==1.6.5
|
|
10
|
+
Requires-Dist: langchain==1.4.2
|
|
11
|
+
Requires-Dist: matplotlib==3.11.2
|
|
12
12
|
Requires-Dist: mkdocs-gen-files>=0.6.1
|
|
13
13
|
Requires-Dist: mkdocs-material>=9.7.7
|
|
14
14
|
Requires-Dist: mkdocs>=1.6.1
|
|
15
15
|
Requires-Dist: mkdocstrings[python]>=1.0.6
|
|
16
|
-
Requires-Dist: openai
|
|
16
|
+
Requires-Dist: openai==3.19.2
|
|
17
17
|
Requires-Dist: psutil>=7.2.2
|
|
18
|
-
Requires-Dist: pydantic
|
|
18
|
+
Requires-Dist: pydantic==2.13.5
|
|
19
19
|
Requires-Dist: pydot>=4.0.1
|
|
20
20
|
Requires-Dist: pympler>=1.1
|
|
21
|
+
Requires-Dist: pyrefly>=0.60.0
|
|
21
22
|
Requires-Dist: pystemmer>=3.1.0
|
|
22
|
-
Requires-Dist: python-dotenv
|
|
23
|
-
Requires-Dist: rustworkx
|
|
24
|
-
Requires-Dist: sqlalchemy
|
|
25
|
-
Requires-Dist: tqdm
|
|
26
|
-
Requires-Dist: trino
|
|
23
|
+
Requires-Dist: python-dotenv==1.2.3
|
|
24
|
+
Requires-Dist: rustworkx==0.18.1
|
|
25
|
+
Requires-Dist: sqlalchemy==2.0.54
|
|
26
|
+
Requires-Dist: tqdm==4.70.1
|
|
27
|
+
Requires-Dist: trino==0.340.0
|
|
27
28
|
Description-Content-Type: text/markdown
|
|
28
29
|
|
|
29
30
|
# DBGraph - Building schema graph with LLM Assistance
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"place":0,"have":1,"geograph":2,"provid":3,"phone":4,"has":5,"logist":6,"telephon":7,"file":8,"price":9,"manag":10,"url":11,"hire":12,"transact":13,"inform":14,"link":15,"packag":16,"cost":17,"descript":18,"profession":19,"integ":20,"carrier":21,"serv":22,"area":23,"home":24,"citi":25,"categor":26,"discontinu":27,"system":28,"larg":29,"organiz":30,"all":31,"uniqu":32,"scope":33,"addit":34,"from":35,"facilit":36,"about":37,"which":38,"time":39,"status":40,"includ":41,"mr":42,"id":43,"current":44,"websit":45,"segment":46,"yet":47,"appli":48,"handl":49,"sold":50,"line":51,"deliv":52,"custom":53,"binari":54,"full":55,"southern":56,"detail":57,"busi":58,"who":59,"address":60,"resid":61,"locat":62,"25":63,"minimum":64,"assign":65,"identifi":66,"first":67,"content":68,"tabl":69,"metadata":70,"repres":71,"last":72,"compani":73,"be":74,"expect":75,"indic":76,"market":77,"destin":78,"within":79,"ship":80,"percentag":81,"entri":82,"weight":83,"each":84,"birth":85,"job":86,"process":87,"dr":88,"identif":89,"store":90,"lookup":91,"biograph":92,"posit":93,"label":94,"rang":95,"number":96,"mani":97,"internal":98,"level":99,"state":100,"associ":101,"quantiti":102,"referenc":103,"homepag":104,"profil":105,"countri":106,"where":107,"postal":108,"facsimil":109,"inventori":110,"map":111,"provinc":112,"whether":113,"refer":114,"ani":115,"personnel":116,"pack":117,"singl":118,"record":119,"been":120,"use":121,"region":122,"between":123,"northern":124,"act":125,"customerdemograph":126,"avail":127,"arriv":128,"shipper":129,"eastern":130,"imag":131,"group":132,"employe":133,"specif":134,"name":135,"dispatch":136,"local":137,"confect":138,"charg":139,"flag":140,"unit":141,"actual":142,"contain":143,"definit":144,"correspond":145,"sale":146,"zip":147,"surnam":148,"discount":149,"logo":150,"legal":151,"purchas":152,"textual":153,"threshold":154,"supplier":155,"size":156,"key":157,"parent":158,"it":159,"person":160,"base":161,"photograph":162,"case":163,"contact":164,"whom":165,"role":166,"text":167,"relationship":168,"junction":169,"explain":170,"street":171,"given":172,"respons":173,"extens":174,"per":175,"beverag":176,"foreign":177,"physic":178,"often":179,"deliveri":180,"establish":181,"date":182,"primari":183,"path":184,"code":185,"entiti":186,"activ":187,"when":188,"photo":189,"classifi":190,"product":191,"order":192,"stock":193,"should":194,"demograph":195,"courtesi":196,"freight":197,"report":198,"new":199,"type":200,"object":201,"describ":202,"visual":203,"territori":204,"fax":205,"categori":206,"held":207,"master":208,"characterist":209,"data":210,"ms":211,"employeeid":212,"western":213,"hierarchi":214,"databas":215,"note":216,"titl":217,"salut":218,"item":219,"regard":220,"":221}
|
|
@@ -4,9 +4,9 @@ from dbgraph.entity.dbgraph import DatabaseGraph
|
|
|
4
4
|
from dbgraph.entity.link import Link
|
|
5
5
|
from dbgraph.entity.link_type import LinkType
|
|
6
6
|
from dbgraph.builder.sql_graph_builder import SQLGraphBuilder
|
|
7
|
-
from dbgraph.persistent.sql_graph_persistent import SQLGraphPersistent
|
|
8
7
|
from dbgraph.descriptor.langchain_graph_descriptor import LangchainGraphDescriptor
|
|
9
8
|
from dbgraph.render.markdown_renderer import MarkdownRenderer
|
|
9
|
+
from dbgraph.persistent.orm_graph_persistent import ORMGraphPersistent
|
|
10
10
|
|
|
11
11
|
__all__ = [
|
|
12
12
|
"Asset",
|
|
@@ -15,7 +15,7 @@ __all__ = [
|
|
|
15
15
|
"Link",
|
|
16
16
|
"LinkType",
|
|
17
17
|
"SQLGraphBuilder",
|
|
18
|
-
"SQLGraphPersistent",
|
|
19
18
|
"LangchainGraphDescriptor",
|
|
20
19
|
"MarkdownRenderer",
|
|
20
|
+
"ORMGraphPersistent"
|
|
21
21
|
]
|