https://github.com/loicmahieu/sequelize-utils
Set of utilities for Sequelize
https://github.com/loicmahieu/sequelize-utils
Last synced: 3 months ago
JSON representation
Set of utilities for Sequelize
- Host: GitHub
- URL: https://github.com/loicmahieu/sequelize-utils
- Owner: LoicMahieu
- Created: 2014-06-24T15:51:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T14:34:14.000Z (almost 7 years ago)
- Last Synced: 2025-03-20T01:02:13.428Z (4 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
sequelize-utils
===============```
npm install --save sequelize-utils
```# Properties
## JSON
### Options
`indent`: Causes the resulting string to be pretty-printed. Default: 2
```
Model = sequelize.define('utils_property_list', {
prop: utils.property.json('prop')
});
```## List
### Options
`separator`: Delimiter. Default: ','
```
Model = sequelize.define('utils_property_list', {
prop: utils.property.list('prop')
});
```