0

It seems that "npm pg" (https://github.com/brianc/node-postgres) is the prefered module to interact with a postgres database from a node.js script.

nevertheless this module does not support binary large objects in the form of postgres "Large Objects". It only support the bytea format.

Is there a module that I am missing that has lo support ?

4

1 回答 1

0

您可能必须编写自己的支持。请注意,libpq 基本上只是通过 SQL 接口调用函数。有关更多文档,请参阅http://www.postgresql.org/docs/9.1/static/lo-funcs.html

如果需要,您可以参考 libpq 客户端接口文档,然后使用\df以查看如何在 PostgreSQL 中调用这些文档。

于 2013-05-14T01:50:04.037 回答