Skip to content

Releases: cyjake/leoric

v0.1.6

21 Dec 01:15
Compare
Choose a tag to compare
  • New: proper .first, .last, .all, and .get(index)
  • Fix: accept Date, boolean, and Set values
  • Fix: Model.unscoped
  • Fix: Model.remove({}, true) should be unscoped

Also added a few test cases about Date functions.

v0.1.5

20 Dec 02:12
Compare
Choose a tag to compare
v0.1.5 Pre-release
Pre-release
  • Refactor: encapsulate column names. Keep them from the users even if the query results can not be dispatched.
  • Fix: complicated groups with joins should discard the use of subquery.
  • Fix: camelCase should replace globally
  • Fix: avoid missing attribtue exception when toJSON/toObject

v0.1.4

20 Dec 02:11
Compare
Choose a tag to compare
v0.1.4 Pre-release
Pre-release
  • Fix: should format condition arrays by hand instead of hand it over to formatExpr
  • Fix: whereConditions of subquery should retain the order of the whereConditions in major query
  • Fix: calculated columns should be kept in the final columns when sorting out the attributes
  • Fix: doesn't depend on co anymore

v0.1.3

17 Dec 16:54
Compare
Choose a tag to compare
v0.1.3 Pre-release
Pre-release

A proper expression parser that supports compound conditions like (a = 1 or a = 2) and b = 3. The formatter in Spell is updated accordingly.

  • Fix: select distict foo from table;
  • Fix: where (a = 1 or a = 2) and b = 3;
  • Docs: a syntax table to provide a better glance over the querying ability.

v0.1.2

17 Dec 16:52
Compare
Choose a tag to compare
v0.1.2 Pre-release
Pre-release
  • Copy left table's orders into subquery to make order/limit work when combined.
  • Throw errors when accessing missing attributes that weren't selected at the first place.

v0.1.1

13 Dec 08:16
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release
  • Refactored spell chaining to allow automatic versioning. Now the spells can be reused without interfering each other.
  • Finished English version on guides about basic, associations, and query interface.
  • Fixed two bugs about select and where in join queries.

v0.1.0

13 Dec 08:00
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Initial release, covers basic functionalities such as:

  • Model authoring and database connection,
  • Query interface,
  • Associations