2

I am trying to connect my SailsJS app to a postgres db that has another schema aside from 'public'

The schema name of the postgres DB that I am connecting to is 'sales'

Where am I am going wrong?

Thank you!

connection: 'postgres',
tableName: 'user__c',
meta: {
 schemaName: 'sales'
 },

attributes: {
name: {
 type: 'string'
 },
 picture_url: {
  type: 'string'
 }
} 
4

2 回答 2

1

这么久了,这仍然是最新版本的 Sails (0.11.x) 中的 waterline-sequel (0.5.0) 的问题,到目前为止还没有解决。

meta.schemaName 存在于代码中,但目前用于装饰目的(孤立)。:)

于 2015-08-19T22:50:58.423 回答
0

根据您所写的内容,模型定义的形式和结构没有任何问题。

如果您继续收到错误,请提供更多信息。

于 2015-03-26T15:05:35.107 回答