Check if SQL appears complete (ends with semicolon outside of string/comment)
This is a simple heuristic that checks if the SQL ends with a semicolon,
accounting for strings, comments, and escaped quotes. For more robust
SQL validation, use Database.isValidSQL() which uses DuckDB's parser.
Check if SQL appears complete (ends with semicolon outside of string/comment)
This is a simple heuristic that checks if the SQL ends with a semicolon, accounting for strings, comments, and escaped quotes. For more robust SQL validation, use Database.isValidSQL() which uses DuckDB's parser.