Releases: adonisjs/lucid
Releases · adonisjs/lucid
Fixing make:model command
- fix(make model): create command inside the application source 31bcbb4
Add make:model command
Add support for Global transactions
Adding `ref` and `raw` method to Database
Ref
The ref
returns an instance of ReferenceBuilder, which can be used to mark string like values as database identifiers. For example:
Database.query().where('id', Database.ref('some-subquery.user_id'))
With ref
, the value will be considered as string literal. But we want it to be reference to a column from a sub query select
Raw
The raw
is like rawQuery
method, but you cannot execute it.
Remove columnify and use cli table 3
Fix formatting for some log messages
Improve truncate method and rename .raw to .rawQuery
- feat: add truncate method to base model 8bdb7d4
- feat: add cascade support to truncate methods 5c678af
- refactor: config stub enable debugging when log level is trace 6a22a17
- style: remove _ from private properties 084345e
- feat(commands): print preview message when running migrations commands 687c145
- refactor: rename raw to rawQuery, preserving .raw for future 27184fd
- fix(QueryClient): columnsInfo method must use knexQuery.table method 57c56b7
- chore(package): update dependencies ccc2e46
Fix aggregate queries for relationships
- fix(relations): generate correct sql queries for related aggregate queries 3ee025a
Remove timezone option from per column settings and handful of bug fixes
- refactor: remove timezone configuration from individual fields fd91b32
- feat(BaseModel): merge and fill ignore undefineds by default, with an option to disable behavior 2a4ea4b
- fix(query builder): where clause check for undefined values when decided which arguments to use 60f2600
- chore: update dependencies 7c68ec9
Adding support for date times
- fix: breaking tests across dialects 53c4ec2
- feat: add option to disable migration rollback in production 5239d9f
- feat: add support for defining date and datetime columns 28a26ca
- feat: add support for transforming the value when consuming it from db defbb8f
- refactor: allow meta object in column and computed definitions b93626e
- refactor: export required interfaces c03d965
- refactor: cleanup scattered methods to resolve keys in favor of proper keys mapping 385ffe7
- refactor: add returning clause to insert,update queries regardless of increments boolean f13ada3
- fix: types for related create/createMany calls fd2451b
- refactor: do not accept arguments in toJSON method 24334a2
- fix(preloader): do not run whereIn query when parent rows are empty e4b1cc5
- fix: do not wrap aggregates result into model instances b7dbf6b
- fix: ignore fk key null values when preloading belongsTo 81e7972