Comments (1)
Hi! I've just looked. There is mistake in docs: connection attribute should be specified one level up :)
Like this:
module.exports = {
attributes: {
id: {
type: Sequelize.STRING,
allowNull: false,
primaryKey: true,
field: 'proid'
},
name: {
type: Sequelize.STRING,
field: 'name'
}
},
options: {
tableName: 'inwork',
classMethods: {},
instanceMethods: {},
hooks: {},
scopes: {},
timestamps: false
},
connection: 'test'
};
from sails-hook-sequelize.
Related Issues (20)
- option bug fix
- SequelizeUniqueConstraintError: Validation error HOT 3
- Sails lift hook load fail HOT 3
- model definitions as Sequelize-Auto HOT 1
- Error: Callback was already called HOT 1
- Table schema changes are not updating HOT 2
- sequelize not found in controller HOT 2
- Sync is causing an error when I start sails for a second time HOT 9
- Model is not defined. HOT 2
- Model is not defined.
- Allow sharing of model definitions among datasources HOT 1
- Postgres Schema migration throws unique constraint violation errors when multiple datasources are defined HOT 1
- Blueprint APIs are not working after installing sails-hook-sequelize HOT 2
- Support Sequelize 5 HOT 4
- Sequelize should be a peerDependency HOT 4
- Problem if datastores > 1 HOT 1
- Document clsNamespace
- Support Sequelize 6 HOT 4
- Other fields not accessible for custom validations HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sails-hook-sequelize.