1

我正在尝试使用sails.js 来构建一个项目并且遇到了麻烦,我想修补传递给水线postgres 适配器的“类型”,以便我可以使用postgres 类型。

我有一个当前 postgres 适配器的分支,当我更改对类型的水线支持以包含 ltree 时,适配器可以工作。

这是 postgres 适配器的分支 https://github.com/opus-1/sails-postgresql

这是我想要猴子补丁的代码:

https://github.com/balderdashy/waterline/blob/master/lib/waterline/utils/types.js

module.exports = [
  'string',
  'text',
  'integer',
  'float',
  'date',
  'time',
  'datetime',
  'boolean',
  'binary',
  'array',
  'json',
  'mediumtext',
  'longtext',
  'objectid'
];
4

0 回答 0