Skip to content

Releases: riao-project/riao-dbal

v3.1.0

27 Jan 19:54
Compare
Choose a tag to compare

Blog Post

What's Changed

Additions

Fixes

Full Changelog: v3.0.1...v3.1.0

v3.0.1

13 Jan 20:53
Compare
Choose a tag to compare

Fixes

Full Changelog: v3.0.0...v3.0.1

v3.0.0

13 Jan 20:42
Compare
Choose a tag to compare

Breaking Changes

  • #87 Misleading Behavior in insertOne Method with Multiple Records
    • insertOne() records key has changes to record
  • #89 Refactor expression/placeholder logic
    • Imports to @riao/dbal/conditions have moved to:
      • and, or, not: @riao/dbal/expression
      • comparisons (less than, equals, not equal, etc.): @riao/dbal/comparison
    • Subqueries must now be wrapped in new Subquery()
    • columnName() is now identifier(), although the former has been left in for backwards compatibility
    • 'and' and 'or' strings are no longer allowed in expressions, and must be replaced with and and or imported from @riao/dbal/expression

New Features

  • #45 Group By
  • #89 Join on expression
  • #89 Select column from expression
  • #89 Select where expression
  • #89 Select where KV expression
  • #89 Insert record w/ expression
  • #89 Update record w/ expression
  • #89 Delete record w/ expression
  • #89 Default column value from function/expression/etc.

Fixes

  • #89 Refactor expression/placeholder logic by @DrewImm in #90
  • #80 Running findOne before database init complains about unknown PK i… by @DrewImm in #93

All Changes

  • #89 Refactor expression/placeholder logic by @DrewImm in #90
  • #87 Misleading Behavior in insertOne Method with Multiple Records by @DrewImm in #91
  • #45 Add support for group-by by @DrewImm in #92
  • #80 Running findOne before database init complains about unknown PK i… by @DrewImm in #93

Full Changelog: v2.0.0...v3.0.0

v2.0.0

10 Nov 21:16
Compare
Choose a tag to compare

Breaking Changes

  • QueryRepository insert() now returns void instead of an array. Use insertOne() if you need the ID returned #62
  • QueryRepository insertOne() will now throw an exception if the primaryKey option is not passed and one cannot be inferred from the schema (i.e. if the schema is out-of-date or empty) #4
  • db.functions has been replaced by the global DatabaseFunctions class. Replace db.functions.* with DatabaseFunctions.* and import from @riao/dbal #58
  • Drivers must be upgraded to the dbal-2x compatible version
    • (Drivers only) - Driver builders should be updated to use the new this.sql object instead of this.sql string and this.params array #60

All Changes

  • #43 Add support for table alias
  • #24 Add "identified by" attribute to model repositories to allow dynamic or DRY primary key refs
  • #25 Add accessor method/property to access a repository's table name
  • #63 Add "not null" query condition
  • #26 Add count method to QueryRepository by @DrewImm in #55
  • #37 Add support for between to select query by @DrewImm in #56
  • #35 Add support for select DISTINCT by @DrewImm in #57
  • #66 Add DDL Builder access method for getting column types by @DrewImm in #69
  • #58 Token usage/implementations are inconsistent by @DrewImm in #59
  • #60 SQL builder should be separated from query/ddl/schema builders by @DrewImm in #61
  • #62 Only insertOne() should return ID; insert in bulk should not by @DrewImm in #65
  • Issue 62 by @DrewImm in #68
  • #67 SQLite Prep - Add DDLBuilder::createTablePrimaryKeys() to allow override by @DrewImm in #72
  • #70 SQLite Prep - Queries may return no results by @DrewImm in #71
  • #64 SQL Syntax Error - Order By with Limit by @DrewImm in #73
  • #4 Running query.insert with an empty schema returns undefined id by @DrewImm in #74

Full Changelog: v1.1.3...v2.0.0

v1.1.3

28 Oct 11:51
5053fe7
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.2...v1.1.3

v1.1.2

15 Oct 12:58
1066a0e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

14 Oct 21:38
a3e42b7
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

07 Oct 19:53
b23781c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.2...v1.1.0

[1.0.2]

30 Jun 00:08
21d3458
Compare
Choose a tag to compare

What's Changed

  • [Issue #1] Update readme for v1.0.1 by @DrewImm in #7
  • [Issue #2] Update package.json github links by @DrewImm in #8
  • [Issue #3] Running migrations generates empty schema by @DrewImm in #9
  • [Issue #6] Inserting objects with null values by @DrewImm in #10
  • [Issue #3] Running migrations generates empty schema - Unit test update by @DrewImm in #11
  • [Issue #5] Inserting objects with different shapes fails by @DrewImm in #12
  • [Issue #1] Update readme for release by @DrewImm in #13
  • V1.0.2 by @DrewImm in #14

New Contributors

Full Changelog: v1.0.1...v1.0.2

[1.0.1] Initial Release

27 Jun 23:58
Compare
Choose a tag to compare