【问题标题】:node.js module support for postgres large objects (lo not bytea)node.js 模块对 postgres 大对象的支持(lo 不是 bytea)
【发布时间】:2013-05-14 09:50:04
【问题描述】:

似乎“npm pg”(https://github.com/brianc/node-postgres) 是从 node.js 脚本与 postgres 数据库交互的首选模块。

尽管如此,此模块不支持 postgres“大对象”形式的二进制大对象。它只支持bytea格式。

是否有我缺少的模块支持?

【问题讨论】:

    标签: node.js postgresql


    【解决方案1】:

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

    如果需要,您可以参考 libpq 客户端接口文档,然后使用 \df 了解如何在 PostgreSQL 中调用它们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-02
      • 2011-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-03
      • 2016-08-12
      相关资源
      最近更新 更多