Skip to content

Synchronous query first ORM!

Latest
Compare
Choose a tag to compare
@richardo2016 richardo2016 released this 25 Apr 12:54
· 286 commits to master since this release

In 1.10.0, all query/request to databse is synchronous first! That means NO unnecessary callback composition-decomposition when you call APIs such as model.createSync, instance.saveSync, etc.

  • ✨ built-in knex object in DMLDriver, you can get it by orm.driver.knex
  • ✨ built-in database-connection-pool, fib-pool function would be called when query executed, enable pool-query by
    • passing pool option when connect database(such as mysql://root:@localhost:3306/schema?pool=true)
    • or setting connection.pool as true
      • ORM.settings.set('connection.pool', true)
      • model.settings.set('connection.pool', true))
  • All classical apis compatible 😊
  • 🚀 better model & association hooks.