Skip to content

Dynamic identifiers such as schema or table name #120

Closed
@kevbook

Description

@kevbook

In https://github.com/porsager/postgres which has a similar query syntax, there is a way to use dynamic identifiers for schema or table name. Need something similar here as well. Let me know how I can help.

const tableName = 'abc';
await sql`SELECT * FROM ${sql(tableName)}`;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions