DuckDB Terminal - v0.2.0
    Preparing search index...

    Function isSQLComplete

    • 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.

      Parameters

      • sql: string

      Returns boolean