sdepold/sequelize — pull request #201 by janmeier (2012-06-29 11:38:29+00:00)
Title: Option to omit null values in insert and update queries.

In the project we are currently working on, we already have our full database structure set up, so we are making some changes to sequelize to best fit it to our current datastructure.

The schemas we have does not allow null, instead they just use '' (empty string) for blank fields. Therefore, we want an options to be able to tell the database that it should not try to insert null values in the database.

The option is called ````omitNull````, and should be passed in the options has when creating a new sequelize instance. Currently, the option can only be specified on database level, not on individual tables.

If omitNull is not passed when creating a sequelize instance, it is assumed to be false, meaning everything will work as before.