Stability: 1 - Experimental
/dev/null adapter for Sails
These aren't the datas you're looking for
FooBarCommand.create(req.params.all(), function(err, sanitized_data) {
if (err) {
return res.json({
status: 'error',
error: err
});
}
// send `sanitized_data` elsewhere
});module.exports = {
adapter: 'devnull',
autoUpdatedAt: false,
autoPK: false,
schema: true,
attributes: {
id: {
type: 'uuidv4',
required: true,
primaryKey: true
},
name: 'string',
timestamp: 'datetime'
}
};Hook to validate on the request level: https://github.com/Josebaseba/sails-hook-validator
Who knows..
Waterline is a new kind of storage and retrieval engine. It provides a uniform API for accessing stuff from different kinds of databases, protocols, and 3rd party APIs. That means you write the same code to get users, whether they live in mySQL, LDAP, MongoDB, or Facebook.
MIT
