Closed ghost closed 1 year ago
Hi @ronny-fraim, thanks for the PR! Added a pool example and test for node-postgres in 009773442e9a797b13ea58a336dfd54237cb264e. I haven't tried Kysely, but it may make sense to use pgvector/utils
instead of pgvector/pg
, which already has fromSql
.
Hi @ronny-fraim, thanks for the PR! Added a pool example and test for node-postgres in 0097734. I haven't tried Kysely, but it may make sense to use
pgvector/utils
instead ofpgvector/pg
, which already hasfromSql
.
Oh cool, didn't realise that pgvector/utils
was exposed, maybe worth adding that to the README too
Changes
fromSql
method in the node-pg module for manual use cases where setting type doesn't work (like when using with Kysely where the DB schema doesn't have knowledge of the vector type)toSql
type signature to specify return type in node-pg modulefromSQL