Skip to content

LISTEN with a "." character #495

@darrachequesne

Description

@darrachequesne

Hi! Is it possible to listen to a channel which has a "." character in its name?

const channel = "a.b";

await sql.listen(channel, (payload) => {
  console.log(payload);
});

await sql.notify(channel, "hello");

throws Uncaught (in promise) PostgresError: syntax error at or near "."

Is there a way to escape this character?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions