balderdashy/sails-mysql — pull request #20 by particlebanana (2013-06-05 00:09:49+00:00)
Title: Waterline 0.9.0 Support

Updates adapter to work with the new Waterline. Also bumped the version to `0.8.0` so it should be good to publish on NPM the same time we publish `waterline` and `waterline-adapter-tests`.

**NOTE:**

- I changed the way dates are handled, they are now UTC times to conform to the same API as the postgresql adapter. See [toSQLDate](https://github.com/particlebanana/sails-mysql/blob/waterline-0.9.0/sql.js#L349-L354)

- I changed the way strings are stored. Before strings and text were both stored as text. This didn't allow you to use strings as keys because MySQL requires a length on keys. By splitting up strings and text types I can use `varchar(255)` on a string and keep text the same. See [sqlTypeCast](https://github.com/particlebanana/sails-mysql/blob/waterline-0.9.0/sql.js#L315-L320)