Skip to content

upgrade dependencies + breaking change in getter functions

Latest
Compare
Choose a tag to compare
@BibiFock BibiFock released this 16 Jan 10:53

Pull Request: #10

Breaking change

Model functions

findBy, findByProps, getAll function are removed.

Now you can used:

  • allByKeys: return all element with primary key in array, like removed function allBy
  • allByProps: equivalent of findByProps
  • getByProps: just an alias of allByProps who get the first result

Model config helper

Now you have access to simple string queries.
Currently, model.queries. returns sql-template-string object.
But if you need only simple string query it's possible like this model.queries.raw.

Example for select querie:

  • model.queries.select() // generate a sql Template queries
  • model.queries.raw.select // return query string

Upgrade project dependencies

Upgrade dependencies project, see #10 for more details