Skip to content

Commit 543d4c0

Browse files
committed
Enhance database agent with schema and query logging features
- Introduced QuestionMeta model to encapsulate question, SQL, and prompt. - Updated _parse_schema_to_knowledge to save DDL and DML records in JSON format. - Modified question_to_sql to return QuestionMeta instead of raw SQL. - Improved error handling in database manager to raise SQLExecutionError. - Refactored prompt generation for question inference to use predefined templates.
1 parent 022a5f9 commit 543d4c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ lint_tests: PYTHON_FILES=tests
1616
lint_tests: MYPY_CACHE=.mypy_cache_test
1717

1818
lint lint_diff lint_package lint_tests:
19+
ruff -V
20+
mypy -V
1921
[ "$(PYTHON_FILES)" = "" ] || ruff check $(PYTHON_FILES)
2022
[ "$(PYTHON_FILES)" = "" ] || ruff format $(PYTHON_FILES) --diff
2123
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)

0 commit comments

Comments
 (0)