top | item 47055341

(no title)

MuffinFlavored | 12 days ago

any reason why you did

    const { rows } = client.query(
      "select id, name, last_modified from tbl where id = $1",
      [42],
    );
instead of

    const { rows } = client.query(
      "select id, name, last_modified from tbl where id = :id",
      { id: 42 },
    );

discuss

order

n_e|12 days ago

That is the way node-postgres works. pg-typesafe adds type safety but doesn’t change the node-postgres methods