Skip to content

Releases: BibiFock/vege-data

upgrade dependencies + breaking change in getter functions

16 Jan 10:53
Compare
Choose a tag to compare

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

upgrade dependencies + fix installation script

31 Oct 19:04
Compare
Choose a tag to compare
1.0.3

upgrade dependencies + fix installation script

Add model.findByProps

23 Aug 19:07
Compare
Choose a tag to compare

Add new function findByProps

model.findByProps({ field: value, otherField: [value1, value2] });

Add param concat in helpers.concatValues:

// example with custom conditions requests
const conds = { name: 'goku', type: 'sayan' };
model.queries.select()
  .append(
    helpers.concatValues(
        Object.keys(conds),
        (key) => conds[key],
        (index) => i > 0 ? ' AND ' : ' WHERE '
    )
   )

Add sort option

28 Jul 14:28
Compare
Choose a tag to compare

Add default sort options

1.0.0

06 Jun 17:11
Compare
Choose a tag to compare
v1.0.0

v0.1.5

05 Jun 08:25
Compare
Choose a tag to compare
v0.1.5 Pre-release
Pre-release
fix dependencies

v0.1.4

05 Jun 07:15
Compare
Choose a tag to compare
v0.1.4 Pre-release
Pre-release
add model query logguer

v0.1.3

04 Jun 19:06
Compare
Choose a tag to compare
v0.1.3 Pre-release
Pre-release
add helpers export

v0.1.2

01 Jun 21:18
Compare
Choose a tag to compare
v0.1.2 Pre-release
Pre-release
fix npm install for package.json

add findBy method

01 Jun 16:46
Compare
Choose a tag to compare
add findBy method Pre-release
Pre-release
v0.1.1

add findBy function