Skip to content

Connect on query

Compare
Choose a tag to compare
@refractalize refractalize released this 01 Feb 11:09
· 154 commits to master since this release

This release breaks the API, please upgrade carefully. In particular, the sworm.db(config) return is no longer a promise, but a db instance.

  • Previously sworm.db(config) returned a promise, now it returns a new db instance. The first db.query() or the first db.connect() will connect to the database.
  • Now supporting setupSession to setup session properties before querying.