-
Let's say I have three models Genre, Book and Author:
``` js
const Genre = seq.define('Genre', {
id: {type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true},
name: Sequelize.STRING
})
co…
-
## What you are doing?
I want to retrieve a computed column (*"cipher"*) which is the encrypted value of another column (*"secret"*). Unfortunately, I am not able to exclude the *"secret"* column fro…
-
So I spoke to @janmeier a bit about this on the Slack and I think it's a pretty decent idea.
Say we have models; `Product` and `ProductImage`, and they have an association of `Product` hasMany `Pro…
-
I would like to implement something like this: https://github.com/erik-kallen/SaltarelleCompiler/issues/80#issuecomment-12699164 (custom properties).
I was looking into the Knockout implementation: h…
-
mysql collection.
## resources
- http://shlomi-noach.github.io/awesome-mysql/
- https://github.com/shlomi-noach/awesome-mysql/blob/gh-pages/index.md
### video
- mooc http://www.imooc.com/learn/122
###…
-
## What was unclear/insufficient/not covered in the documentation
The documentation suggests the `after` and `transaction` options are passed in the last options parameters, but in fact after must …
-
## What are you doing?
documents.js
```js
const moment = require('moment');
module.exports = function(sequelize, DataTypes) {
return sequelize
.define('documents', {
…
-
From time to time I have to write very complex query that cannot be handled by Sequelize default methods. So I write raw query by hand and I execute it using sequelize instance and passing also sequel…
-
## What you are doing?
Mysql authentication error shows up when i run `db:migrate` command.
```js
Sequelize CLI [Node: 11.11.0, CLI: 5.4.0, ORM: 4.42.0]
Loaded configuration file "src/data…
-
I am using sequelize but ran into the problem of it not supporting model inheritance.
I would suggest implementing an InheritsFrom association, that would be basically the same as the BelongsTo assoc…