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

  1. 20 Mar, 2017 2 commits
    • fix: Make bulkCreate run in O(N) time. Fixes issue #4247. (#7391) · 21671949
      In generating the bulk insert query, the serials are stored in an
      array. This array can potentially be up to size N, which is the number
      of rows to be created.
      
      When generating the tuples at a later stage, we walk through the
      records one-by-one - O(N) iterations. However, in a single iteration,
      we were performing a lookup in the serials array (indexOf costs O(N)),
      leading to a O(N^2) runtime and poor performance for large number of
      records inserted.
      
      This patch converts the serials array into an object map instead, so
      lookups cost O(1) time.
      Wong Yong Jie committed
    • Update models-definition.md (#7397) · ba40d4e2
      Vu Bui committed
  2. 10 Mar, 2017 2 commits
  3. 06 Mar, 2017 1 commit
  4. 03 Mar, 2017 2 commits
  5. 02 Mar, 2017 1 commit
  6. 01 Mar, 2017 1 commit
  7. 27 Feb, 2017 1 commit
  8. 22 Feb, 2017 2 commits
  9. 19 Feb, 2017 4 commits
    • Added unique indexes to rawAttributes (#7196) · 943bdf23
      * Added unique indexes to rawAttributes
      
      * Add changelog entry
      
      * Added integration test to cover composite unique keys, review fixes
      
      * Fixes failing tests
      Harshith Kashyap committed
    • Add quotes around column names for unique constraints in sqlite (fixes #4407) (#7224) · 70c359eb
      * Add quotes around column names for unique constraints in sqlite (fixes #4407)
      
      * Changelog linked to issue
      Stefano Dalpiaz committed
    • fix error when connect to Postgres 8.2.0(fix #5254) (#7266) · 6efc2ad2
      * fix error when connect to Postgres 8.2.0
      
      * Update sequelize.md
      
      * separating version check for clean code
      
      * changelog: properly state oids for postgres
      Jiepei Min committed
    • SQLite JSON datatype support (with JSON1 extension) (#7094) · 75841f3e
      * Adds JSON support for sqlite
      
      * Add JSON support to sqlite query-generator
      
      * add integration test for sqlite json
      
      * add unit test for sqlite json
      
      * fix inaccurate test for json from postgres
      
      * Fix failing test spec in postgres
      
      * Change accroding to review
      
      - Change MySqlQueryGenerator to AbstractQueryGenerator (sqlite)
      - Move parseConditionObject method to the AbstractQueryGenerator (sqlite, postgres)
      - Remove unnecessary module require
      - Remove extra lines
      
      * Fix failing test with sequelize static reference
      
      * Add JSONB type alias to sqlite data types
      
      * Update changelog.md
      
      * Update jsdoc for JSON datatype
      
      * Updates from PR feedback
      
      - Convert es5 syntax to es6 for sqlite query-generator
      
      * Fix parenthesis with single parameter
      
      * Fix deleteQuery condition with JSON field
      
      * Update integration/data-types.test.js
      
      * Add JSON injection preventation code for sqlite
      
      - Add checkValidJsonStatement method to sqlite query-generator
      - Add injection tests for sqlite
      
      * Update sqlite JSON query-generator
      
      * Move common json DAO tests to abstract/dao.test.js
      
      - Add support for json property accessors (sqlite, postgres)
      
      * Fix wrong indentation in abstract/query-generator.js
      
      * Update query-generator.js to use common json method
      
      * Fix inconsistent postgres cast syntax
      
      * Update JSON test specs
      
      - Add injection test for postgres/query-generators.js
      - Replace default sql test expectation with specific dialect (postgres)
      - Update expectsql from test/support.js to throw error when no default expectation
      
      * Fix failing postgres test with cast
      
      * Fix postgres casting syntax
      
      * Fix failing test for postgres
      
      * Revert indentation of postgres query-generator
      
      * Cleanup unnecessarily added code
      
      update jsdoc of jsonPathExtractionQuery to match the exact function arguments
      
      * Move integration/dialects/abstract/dao.test.js to integration/json.test.js
      
      * Rewrite unit tests for json query-generator in unit/sql/json.test.js
      
      * Capitalize AND operator while generating json query via condition object
      
      * Fix failed tests
      Youngrok Kim committed
  10. 15 Feb, 2017 1 commit
  11. 08 Feb, 2017 2 commits
    • Fixes setAssociation with scope (#7159) · 8cbd3750
      * Fixes setAssociation with scope
      
      * Fixes style
      pola88 committed
    • 6935 remove order string syntax (#7220) · e22ce18d
      * Refactored support for ORDER BY clause so SQL injection is not possible.
      
      * Adds sublime text files to gitignore.
      Modified changelog to accurately represent changes to the order property.
      Fixed lint issues.
      
      * Added rejection with error where Order must be type of Array or instance of sequelize literal.
      
      * Removed support for options.order accepting strings.
      @TODO Look into plain objects with property raw
      @TODO Update documentation and tests
      
      * Removed all direct lodash and replaced them with Utils.
      ie. `_.isPlainObject` is now `Utils._.isPlainObject`
      find: `(?s)(?<!Utils\.)_\.`
      replace : `Utils._.`
      
      * Updates documentation for findAll order.
      
      * Added removeTicks to addTicks in quoteIdentifier for each dialect.
      
      * Added documentation for order by only an array.
      
      * Added breaking change to changelog and renamed error to be more general.
      
      @TODO: TESTS!
      
      * Fixes bad code when checking if the order is valid.
      
      * Updated unit tests.
      
      * Should incorporate all integration tests.
      
      * Update changelog.md capitalize Sequelize
      
      * Changes everything in query generator to use lodash outside of utils.
      
      * Instead of checking if the order object is an instance of a Utils member we just see if `_.isSequelizeMethod` is truthy.
      
      * Removing escapeId because it is no longer used.
      
      * Instead of removing ticks, we should escape them.
      
      * Instead of removing ticks, we should escape them. (reverted from commit e4dade0a18be85dfaf8f91f1210bc0b5bedcb31a)
      
      * Removes support for `._isSequelizeMethod` because it can be spoofed.  Instead, use instanceof.
      Michael Kaufman committed
  12. 07 Feb, 2017 3 commits
    • 6935 remove order string syntax (#7160) · c12b36b8
      * Refactored support for ORDER BY clause so SQL injection is not possible.
      
      * Adds sublime text files to gitignore.
      Modified changelog to accurately represent changes to the order property.
      Fixed lint issues.
      
      * Added rejection with error where Order must be type of Array or instance of sequelize literal.
      
      * Removed support for options.order accepting strings.
      @TODO Look into plain objects with property raw
      @TODO Update documentation and tests
      
      * Removed all direct lodash and replaced them with Utils.
      ie. `_.isPlainObject` is now `Utils._.isPlainObject`
      find: `(?s)(?<!Utils\.)_\.`
      replace : `Utils._.`
      
      * Updates documentation for findAll order.
      
      * Added removeTicks to addTicks in quoteIdentifier for each dialect.
      
      * Added documentation for order by only an array.
      
      * Added breaking change to changelog and renamed error to be more general.
      
      @TODO: TESTS!
      
      * Fixes bad code when checking if the order is valid.
      
      * Updated unit tests.
      
      * Should incorporate all integration tests.
      
      * Update changelog.md capitalize Sequelize
      
      * Changes everything in query generator to use lodash outside of utils.
      
      * Instead of checking if the order object is an instance of a Utils member we just see if `_.isSequelizeMethod` is truthy.
      
      * Removing escapeId because it is no longer used.
      
      * Instead of removing ticks, we should escape them.
      
      * Instead of removing ticks, we should escape them. (reverted from commit e4dade0a18be85dfaf8f91f1210bc0b5bedcb31a)
      Michael Kaufman committed
    • Punctuation and grammar correction in docs/docs/associations.md. (#7211) · c3afda63
      * (docs/docs/associations.md) punctuation fix - added comma
      
      * (docs/docs/associations.md) punctuation fix - added comma
      
      * (docs/docs/associations.md) grammar correction
      Nicholas W Fortner committed
  13. 04 Feb, 2017 3 commits
  14. 03 Feb, 2017 1 commit
  15. 02 Feb, 2017 1 commit
  16. 01 Feb, 2017 4 commits
  17. 31 Jan, 2017 2 commits
    • cherry-pick: 3168d543 · 7d3172df
      v3: sourceKey feature for hasMany doesn't work if where clause specified in include (#7141) (#7147)
      
      * Initial Commit
      
      * Stops test from removing test/integration/assets/es6project.js
      
      * Fixes impromper syntax when specifying the use of association.sourceIdentifier or left.primaryKeyAttribute for attrLeft. Also includes integration test.
      
      * Updates changelog.
      
      * Adds link to issue in changelog entry.
      
      * Added 'Future' header to changelog entry
      
      * Removed changelog update as requested.
      
      * Updates changelog. Fixes query-generator to properly build queries from hasMany even with an include while respecting a specified sourceKey. Adds an integration test.
      
      * Added back removed whitespace per request.
      
      * Updates test in include altered field name in source key. Fixes were then made to address the test breaking. All tests pass now.
      
      * Adds back removed whitespace.
      LoneWolfPR committed
    • MSSQL - Skip isolationLevel query, enable tedious debugging (#7130) · 4416eff9
      * MSSQL - Skip isolationLevel query, enable tedious debugging
      
      * Added changelog entry, updated docs
      Harshith Kashyap committed
  18. 24 Jan, 2017 1 commit
  19. 21 Jan, 2017 1 commit
  20. 20 Jan, 2017 1 commit
  21. 17 Jan, 2017 1 commit
  22. 14 Jan, 2017 1 commit
  23. 12 Jan, 2017 1 commit
  24. 11 Jan, 2017 1 commit