Skip to content

format Array values #4

@webdeb

Description

@webdeb

It does seem, that format cannot deal with postgres array columns, am I right?

A query like:

format("INSERT into posts ?", { title: "New Post", tags: ["foo", "bar"]})

Is not working properly.

A possible workaround is to escape each of the tags separately and use:

format("INSERT into posts ?", { title: "New Post", "!tags": "{" + ["foo", "bar"].map(escape).join(",") + "}")

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