Releases: juanluispaz/ts-sql-query
Releases · juanluispaz/ts-sql-query
1.37.0
Changes:
- Implement
allowWhen
anddisallowWhen
that throws an error if the expression is used in the final query
Documentation changes:
- Fix copy&paste on update documentation refering delete
Bug fixes:
- Fix
minValue
andmaxValue
returning wrong value - Fix missing
with
query when a query in awith
clause depends on anotherwith
query
1.36.0
Bug fixes:
- Fix invalid uuid type in a reusable fragment
1.35.0
Bug fixes:
- Fix wrong return type of
min
andmax
functions in the connection
1.34.0
Changes:
- Add
valueWhenNoValue
function that allows to return a value when null or undefined were provided to the *IfValue function
1.33.0
Bug fixes:
- Fix "Invalid double value received from the db" when the database send a number as string with trailing 0
1.32.0
Changes:
- Implement
onlyWhen
andignoreWhen
function that allows ignoring a boolean expression under a condition - Add support to virtual columns on tables and views
- Implement the types
InsertableValues
,UpdatableValues
andSelectedValues
that allows to get the types for an insert, update and select with the proper types defined in the table without the other sql objects
1.31.0
Bug fixes:
- Fix misspelling in
left outer join
1.30.0
Bug fixes:
- Fix optional join not omitted when an
IfValue
is used and there is no value
1.29.0
Changes:
- Export helper types in extras to retrieve row types when insert, update and select
- Include timestamps in
LoggingQueryRunner
callbacks - Make the
ConsoleLogQueryRunner
more configurable so that it can output results, timestamps and durations as well
Bug fixes:
- Fix insert default values on TypeScript 3.5 or higher
- Unable to compile ts-sql-query with TypeScript 4.7
1.28.0
Changes:
- Add compatibility mode to MySql to avoid use the with clause not supported by MySql 5
- Add support to reference current value and value to insert in an insert on conflict do update