不要怂,就是干,撸起袖子干!

  1. 22 Dec, 2016 1 commit
    • Make Eager Loading Error Messages More User-Friendly (#7005) · 964999dd
      * rewrite logic for finding associations
      
      * update and add new error messgaes and change existing tests to match
      
      * remove comments
      
      * tighten up code for getting associations and keep support for node4
      
      * create SequelizeEagerLoadingError
      
      * remove spaces
      
      * added some happy path unit tests for _getIncludedAssociation
      
      * updated the change log
      
      * remove only
      Nicholas Drane committed
  2. 21 Dec, 2016 1 commit
    • Transactions for SQL Server (#6972) · 086255e5
      * [MSSQL] Uses crypto randomBytes to generate 20 character trasaction identifier, enabled trasaction tests for mssql dialect
      
      * Added missing break, changelog entry
      
      * Added READ_COMMITTED_SNAPSHOT ON script for tests, fixes skipped tests, transaction savepoints, uses sequelize_test as default database on appveyor
      
      * Added sqlcmd database query to appveyor-setup.ps1
      
      * Added sequelize_test as default db in test/config/config for MSSQL dialect
      
      * Moved READ_COMMITTED_SNAPSHOT ON query to appveyor ps script
      
      * Replaced lodash includes with startsWith, review fixes, closes #6954
      Harshith Kashyap committed
  3. 20 Dec, 2016 2 commits
    • add: afterConnect hook · 4214143e
      Jan Aagaard Meier committed
    • try catch block added for formatting parameters process (#6999) · 9b204af6
      * try catch block added for formatting parameters process
      
      * new line space added before braces
      
      * query function processing wrapped to Promise.try
      
      * processQuery method removed from var
      
      * binding context changed to arrow function
      
      * promise.try chaining added
      
      * extra Promise.resolve removed code refactored
      
      * space added
      
      * test cases for 'query' method updated with respect to new rejection structure instead of throwing error
      
      * it block messages corrected
      
      * return added and code structured
      
      * line space added
      
      * line space added
      
      * code style fixed
      Muhammad AbdulMoiz committed
  4. 16 Dec, 2016 4 commits
  5. 09 Dec, 2016 1 commit
  6. 08 Dec, 2016 2 commits
  7. 07 Dec, 2016 1 commit
  8. 06 Dec, 2016 3 commits
    • Fix #3899 no value in built-in/custom validation errors (#6944) · 69c06f29
      * fix: no value in built-in/custom validator
      
      * using call rather than bind
      
      * [ci skip] changelog
      Sushant committed
    • Implement optimistic locking (#6637) · 7d597efb
      * Implement optimistic locking
      
      * Update unit tests
      
      * Add sqlite support
      
      * Add MSSQL support
      
      * Add optimistic locking tests
      
      * Update changelog
      
      * Fix some tests
      
      * Fix lint errors
      
      * Updated SQL Server query implementation
      
      * Update documentation
      
      * Trigger rebuild
      
      * Add eventually to promise test
      
      * Updates from PR feedback
      
      * Add another optimistic locking test for update()
      
      * Update changelog.
      
      * Update error name
      
      * Add optimistic locking documentation section
      
      * Use ES6 style in tests
      
      * Updated documentation
      
      * Code formatting
      David Tsai committed
    • Fixes MSSQL Limit in update query, closes #6636 (#6918) · be30a5e7
      * Fixes MSSQL Limit in update query, closes #6636
      
      * Fixes failing unit test
      
      * Moved unit test to test/unit/sql folder
      
      * Added sqlite case to unit test
      
      * Added MSSQL dialect specific updateQuery
      
      * Removed .call from super.updateQuery
      Harshith Kashyap committed
  9. 05 Dec, 2016 1 commit
  10. 03 Dec, 2016 3 commits
  11. 01 Dec, 2016 1 commit
  12. 30 Nov, 2016 1 commit
  13. 29 Nov, 2016 1 commit
    • Update to UUID 3.X package. (#6919) · b6e1c154
      * Update to uuid@3.x package.
      
      The node-uuid package is deprecated.
      
      The new 3.x version drops the parse and unparse methods which were used in instance integration tests. Tests were updated to use uuid-validate package to validate UUID generation.
      
      * Update changelog Future for PR #6919 - update uuid package.
      Michael Gauthier committed
  14. 24 Nov, 2016 2 commits
    • add a more informative error message (#6915) · 9b73d157
      right now this is basically impossible to track down the root. this PR adds a more informative error message so you actually know what caused the error.
      
      Before:
      
      ```
      TypeError: sql.replace is not a function
              at Object.format (/Users/contra/Projects/staeco/node_modules/sequelize/lib/sql-string.js:87:14)
              at Object.format (/Users/contra/Projects/staeco/node_modules/sequelize/lib/utils.js:119:20)
              at Object.getWhereConditions (/Users/contra/Projects/staeco/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2303:24)
      ```
      
      After:
      
      ```js
      Error: Invalid SQL string provided: ST_Intersects(123)
              at Object.format (/Users/contra/Projects/staeco/node_modules/sequelize/lib/sql-string.js:87:14)
              at Object.format (/Users/contra/Projects/staeco/node_modules/sequelize/lib/utils.js:119:20)
              at Object.getWhereConditions (/Users/contra/Projects/staeco/node_modules/sequelize/lib/dialects/abstract/query-generator.js:2303:24)
      ```
      contra committed
  15. 22 Nov, 2016 1 commit
  16. 21 Nov, 2016 1 commit
  17. 18 Nov, 2016 1 commit
  18. 17 Nov, 2016 1 commit
  19. 16 Nov, 2016 1 commit
  20. 15 Nov, 2016 8 commits
  21. 14 Nov, 2016 2 commits
  22. 13 Nov, 2016 1 commit