update
This commit is contained in:
+2
-1
@@ -530,7 +530,8 @@ function generatesql(a::T, searchterm::String,
|
|||||||
related_tables = a.context.find_related_tables_for_user_question(searchterm)
|
related_tables = a.context.find_related_tables_for_user_question(searchterm)
|
||||||
table_schema = ""
|
table_schema = ""
|
||||||
for table in related_tables
|
for table in related_tables
|
||||||
table_schema_df = GeneralUtils.get_db_table_schema(a.context.pg_conn_str, table)
|
_table_schema_df = GeneralUtils.get_db_table_schema(a.context.pg_conn_str, table)
|
||||||
|
table_schema_df = _table_schema_df[:, [:column_name, :data_type, :constraint_type]]
|
||||||
table_schema_str = sprint(show, table_schema_df) * "\n"
|
table_schema_str = sprint(show, table_schema_df) * "\n"
|
||||||
table_schema = table_schema * table_schema_str
|
table_schema = table_schema * table_schema_str
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user