Function sql

  • Used to take a advantage of the vscode-sql-template-literal VS Code extension that provides syntax highlighting.

    Parameters

    • sql: readonly string[]

      An sql string

    Returns string

    The string, trimmed

    Example

    const mySqlString = sql`SELECT * FROM my_table`
    

    Public Api