Comment on Show HN: Pg-typesafe – Strongly typed queries for PostgreSQL and TypeScriptComments−MuffinFlavored6moany 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 }, );−n_eOP6moThat is the way node-postgres works. pg-typesafe adds type safety but doesn’t change the node-postgres methods
Comments
any reason why you did
instead ofThat is the way node-postgres works. pg-typesafe adds type safety but doesn’t change the node-postgres methods