dbgraph 0.2.3__tar.gz → 0.2.4__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.
Files changed (86) hide show
  1. {dbgraph-0.2.3 → dbgraph-0.2.4}/.idea/workspace.xml +41 -26
  2. {dbgraph-0.2.3 → dbgraph-0.2.4}/PKG-INFO +1 -1
  3. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/descriptor/langchain_graph_descriptor.py +2 -2
  4. {dbgraph-0.2.3 → dbgraph-0.2.4}/pyproject.toml +1 -1
  5. {dbgraph-0.2.3 → dbgraph-0.2.4}/.gitignore +0 -0
  6. {dbgraph-0.2.3 → dbgraph-0.2.4}/.idea/.gitignore +0 -0
  7. {dbgraph-0.2.3 → dbgraph-0.2.4}/.idea/dbgraph.iml +0 -0
  8. {dbgraph-0.2.3 → dbgraph-0.2.4}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  9. {dbgraph-0.2.3 → dbgraph-0.2.4}/.idea/misc.xml +0 -0
  10. {dbgraph-0.2.3 → dbgraph-0.2.4}/.idea/modules.xml +0 -0
  11. {dbgraph-0.2.3 → dbgraph-0.2.4}/.idea/vcs.xml +0 -0
  12. {dbgraph-0.2.3 → dbgraph-0.2.4}/.python-version +0 -0
  13. {dbgraph-0.2.3 → dbgraph-0.2.4}/README.md +0 -0
  14. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-desc.md +0 -0
  15. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-graph-import.db +0 -0
  16. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-graph-v2.json +0 -0
  17. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-graph-v4.json +0 -0
  18. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-graph.db +0 -0
  19. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-graph.json +0 -0
  20. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-graph.png +0 -0
  21. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-index/corpus.jsonl +0 -0
  22. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-index/corpus.mmindex.json +0 -0
  23. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-index/data.csc.index.npy +0 -0
  24. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-index/indices.csc.index.npy +0 -0
  25. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-index/indptr.csc.index.npy +0 -0
  26. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-index/params.index.json +0 -0
  27. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-index/vocab.index.json +0 -0
  28. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind-semantic-v5.json +0 -0
  29. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/northwind.db +0 -0
  30. {dbgraph-0.2.3 → dbgraph-0.2.4}/data/time-results.txt +0 -0
  31. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/__init__.py +0 -0
  32. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/application.py +0 -0
  33. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/builder/__init__.py +0 -0
  34. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/builder/graph_builder.py +0 -0
  35. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/builder/sql_graph_builder.py +0 -0
  36. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/descriptor/__init__.py +0 -0
  37. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/descriptor/graph_descriptor.py +0 -0
  38. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/descriptor/prompt_templates.py +0 -0
  39. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/__init__.py +0 -0
  40. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/aspect.py +0 -0
  41. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/asset.py +0 -0
  42. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/asset_type.py +0 -0
  43. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/dbgraph.py +0 -0
  44. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/link.py +0 -0
  45. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/link_type.py +0 -0
  46. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/entity/rdbgraph.py +0 -0
  47. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/io/__init__.py +0 -0
  48. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/io/graph_loader.py +0 -0
  49. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/io/graph_writer.py +0 -0
  50. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/io/json_graph_loader.py +0 -0
  51. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/io/json_graph_writer.py +0 -0
  52. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/persistent/__init__.py +0 -0
  53. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/persistent/graph_persistent.py +0 -0
  54. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/persistent/json_utils.py +0 -0
  55. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/persistent/models.py +0 -0
  56. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/persistent/sql_graph_persistent.py +0 -0
  57. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/render/__init__.py +0 -0
  58. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/render/graph_renderer.py +0 -0
  59. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/render/markdown_renderer.py +0 -0
  60. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/search/__init__.py +0 -0
  61. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/search/bm25_search_engine.py +0 -0
  62. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/search/search_engine.py +0 -0
  63. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/utils/__init__.py +0 -0
  64. {dbgraph-0.2.3 → dbgraph-0.2.4}/dbgraph/utils/singleton.py +0 -0
  65. {dbgraph-0.2.3 → dbgraph-0.2.4}/diagrams/entity.png +0 -0
  66. {dbgraph-0.2.3 → dbgraph-0.2.4}/diagrams/entity.txt +0 -0
  67. {dbgraph-0.2.3 → dbgraph-0.2.4}/diagrams/usecase.png +0 -0
  68. {dbgraph-0.2.3 → dbgraph-0.2.4}/diagrams/usecase.txt +0 -0
  69. {dbgraph-0.2.3 → dbgraph-0.2.4}/docs/index.md +0 -0
  70. {dbgraph-0.2.3 → dbgraph-0.2.4}/docs/refs/aspect.md +0 -0
  71. {dbgraph-0.2.3 → dbgraph-0.2.4}/docs/refs/graph.md +0 -0
  72. {dbgraph-0.2.3 → dbgraph-0.2.4}/main.py +0 -0
  73. {dbgraph-0.2.3 → dbgraph-0.2.4}/mkdocs.yml +0 -0
  74. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/__init__.py +0 -0
  75. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_application.py +0 -0
  76. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_bm25s_search_engine.py +0 -0
  77. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_dbgraph.py +0 -0
  78. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_json_graph_loader.py +0 -0
  79. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_json_graph_writer.py +0 -0
  80. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_langchain_graph_descriptor.py +0 -0
  81. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_load_graph_sql.py +0 -0
  82. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_markdown_renderer.py +0 -0
  83. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_rdbgraph.py +0 -0
  84. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_sql_graph_builder.py +0 -0
  85. {dbgraph-0.2.3 → dbgraph-0.2.4}/tests/test_sql_graph_persistent.py +0 -0
  86. {dbgraph-0.2.3 → dbgraph-0.2.4}/uv.lock +0 -0
@@ -10,7 +10,6 @@
10
10
  <change beforePath="$PROJECT_DIR$/data/northwind-index/indices.csc.index.npy" beforeDir="false" afterPath="$PROJECT_DIR$/data/northwind-index/indices.csc.index.npy" afterDir="false" />
11
11
  <change beforePath="$PROJECT_DIR$/data/northwind-index/indptr.csc.index.npy" beforeDir="false" afterPath="$PROJECT_DIR$/data/northwind-index/indptr.csc.index.npy" afterDir="false" />
12
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$/pyproject.toml" beforeDir="false" afterPath="$PROJECT_DIR$/pyproject.toml" afterDir="false" />
14
13
  </list>
15
14
  <option name="SHOW_DIALOG" value="false" />
16
15
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -67,31 +66,31 @@
67
66
  <option name="hideEmptyMiddlePackages" value="true" />
68
67
  <option name="showLibraryContents" value="true" />
69
68
  </component>
70
- <component name="PropertiesComponent"><![CDATA[{
71
- "keyToString": {
72
- "ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
73
- "ModuleVcsDetector.initialDetectionPerformed": "true",
74
- "Python tests.Python tests for tests.test_dbgraph.TestDBGraph.executor": "Run",
75
- "Python tests.Python tests for tests.test_json_graph_loader.TestJSONGraphLoader.test_get_neighbors_sub_graph.executor": "Run",
76
- "Python tests.Python tests for tests.test_load_graph_sql.TestLoadGraphSQL.test_load.executor": "Run",
77
- "Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.executor": "Run",
78
- "Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.test__build_links.executor": "Run",
79
- "Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.test_build_graph.executor": "Run",
80
- "Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.executor": "Run",
81
- "Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_load_graph.executor": "Run",
82
- "Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_save_graph.executor": "Run",
83
- "Python tests.Python tests in test_load_graph_sql.py.executor": "Run",
84
- "Python tests.Python tests in tests.executor": "Run",
85
- "RunOnceActivity.ShowReadmeOnStart": "true",
86
- "RunOnceActivity.git.unshallow": "true",
87
- "RunOnceActivity.typescript.service.memoryLimit.init": "true",
88
- "codeWithMe.voiceChat.enabledByDefault": "false",
89
- "git-widget-placeholder": "main",
90
- "ignore.virus.scanning.warn.message": "true",
91
- "nodejs_package_manager_path": "npm",
92
- "settings.editor.selected.configurable": "editor.preferences.folding"
69
+ <component name="PropertiesComponent">{
70
+ &quot;keyToString&quot;: {
71
+ &quot;ASKED_SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
72
+ &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
73
+ &quot;Python tests.Python tests for tests.test_dbgraph.TestDBGraph.executor&quot;: &quot;Run&quot;,
74
+ &quot;Python tests.Python tests for tests.test_json_graph_loader.TestJSONGraphLoader.test_get_neighbors_sub_graph.executor&quot;: &quot;Run&quot;,
75
+ &quot;Python tests.Python tests for tests.test_load_graph_sql.TestLoadGraphSQL.test_load.executor&quot;: &quot;Run&quot;,
76
+ &quot;Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.executor&quot;: &quot;Run&quot;,
77
+ &quot;Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.test__build_links.executor&quot;: &quot;Run&quot;,
78
+ &quot;Python tests.Python tests for tests.test_sql_graph_builder.TestSQLGraphBuilder.test_build_graph.executor&quot;: &quot;Run&quot;,
79
+ &quot;Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.executor&quot;: &quot;Run&quot;,
80
+ &quot;Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_load_graph.executor&quot;: &quot;Run&quot;,
81
+ &quot;Python tests.Python tests for tests.test_sql_graph_persistent.TestSQLGraphPersistent.test_save_graph.executor&quot;: &quot;Run&quot;,
82
+ &quot;Python tests.Python tests in test_load_graph_sql.py.executor&quot;: &quot;Run&quot;,
83
+ &quot;Python tests.Python tests in tests.executor&quot;: &quot;Run&quot;,
84
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
85
+ &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
86
+ &quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
87
+ &quot;codeWithMe.voiceChat.enabledByDefault&quot;: &quot;false&quot;,
88
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
89
+ &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
90
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
91
+ &quot;settings.editor.selected.configurable&quot;: &quot;editor.preferences.folding&quot;
93
92
  }
94
- }]]></component>
93
+ }</component>
95
94
  <component name="RunManager" selected="Python tests.Python tests for tests.test_json_graph_loader.TestJSONGraphLoader.test_get_neighbors_sub_graph">
96
95
  <configuration name="Python tests for tests.test_json_graph_loader.TestJSONGraphLoader.test_get_neighbors_sub_graph" type="tests" factoryName="Autodetect" temporary="true" nameIsGenerated="true">
97
96
  <module name="dbgraph" />
@@ -267,7 +266,23 @@
267
266
  <option name="project" value="LOCAL" />
268
267
  <updated>1788928883769</updated>
269
268
  </task>
270
- <option name="localTasksCounter" value="9" />
269
+ <task id="LOCAL-00009" summary="update renderer">
270
+ <option name="closed" value="true" />
271
+ <created>1788937576614</created>
272
+ <option name="number" value="00009" />
273
+ <option name="presentableId" value="LOCAL-00009" />
274
+ <option name="project" value="LOCAL" />
275
+ <updated>1788937576614</updated>
276
+ </task>
277
+ <task id="LOCAL-00010" summary="update renderer">
278
+ <option name="closed" value="true" />
279
+ <created>1788937586437</created>
280
+ <option name="number" value="00010" />
281
+ <option name="presentableId" value="LOCAL-00010" />
282
+ <option name="project" value="LOCAL" />
283
+ <updated>1788937586437</updated>
284
+ </task>
285
+ <option name="localTasksCounter" value="11" />
271
286
  <servers />
272
287
  </component>
273
288
  <component name="TypeScriptGeneratedFilesManager">
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: dbgraph
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: dbgraph is a database profiling tool which model the database as a graph
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: bm25s>=0.3.9
@@ -34,9 +34,9 @@ class LangchainGraphDescriptor(GraphDescriptor):
34
34
  def _get_semantic_aspect_table(
35
35
  self, asset: Asset, context: RDatabaseGraph
36
36
  ) -> SemanticAspect:
37
- self.markdown_renderer.render(context)
37
+ context_str = self.markdown_renderer.render(context)
38
38
  system_prompt = (
39
- self.table_system_prompt + "\n" + self.markdown_renderer.get_content()
39
+ self.table_system_prompt + "\n" + context_str
40
40
  )
41
41
  question = self.table_question_prompt + " " + asset.name
42
42
  description = self._generate(system_prompt, question)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "dbgraph"
7
- version = "0.2.3"
7
+ version = "0.2.4"
8
8
  description = "dbgraph is a database profiling tool which model the database as a graph"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes