Skip to content

[JavaScript] Tagged SQL Template strings gaps #4463

@themilkman

Description

@themilkman

What happened?

I've noticed a few points where the JS/TS code is not detected correctly (tested with JS+SQL from master):

SQL`"${this.tableName}"."createdAt" <= $${values.length}` // first ${} section + dollar signs after <=
  
SQL`EXISTS (
        SELECT 1 FROM unnest("${this.tableName}"."${columnName}") AS tag
        WHERE tag ILIKE $${paramCounter}
      )` 

Beside that: really cool that this generally works out of the box!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions