Skip to main content

· 3 min read
Lyoha Plotinka

The core library version has reached 0.3.0. Let me briefly explain what's new in Rattus ORM.

TL;DR

  • The database creation process has changed: the recommended approach is to use the createDatabase function;
  • The Query class has been split into two - Query and Constraintor. Constraintor is responsible for applying constraints to data queries, while Query inherits from Constraintor. This provides more flexibility for supporting asynchronous storage;
  • Decorators and attribute type methods have been renamed and moved to a separate export;
  • A @DateField decorator (this.dateField in JS) has been added, which is - obviously - for dates in your models;
  • Dependencies have been updated.