| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2021-12-15 | 1.6 kB | |
| Release 0.12.0.tar.gz | 2021-12-15 | 241.9 kB | |
| Release 0.12.0.zip | 2021-12-15 | 384.0 kB | |
| Totals: 3 Items | 627.6 kB | 0 | |
In memory of my father - even with very low understanding in programming, he was always interested in the current state of Jennifer and whether it was useful to people
Changelog
General
- add crystal 1.2.0 support
QueryBuilder
#pluckaccepts splatted named tuple of desired attribute-type pairs and returns array of such tuples as a records#upsertpasses expression builder as a block argument
Model
- add Optimistic locking support via macro
with_optimistic_lock(column_name = lock_version) updated_atandcreated_atfields aren't override on save if have been set manually- add
upsertclass method to insert multiple models while ignoring conflicts on specified unique fields
Adapter
- fix database connection query arguments building
- each adapter includes
RequestMethodsinstead of including it by base adapter class - add a new
upsertoverload that allows passing a collection ofJennifer::Model::Base - fix
insert_on_duplicatessql generation for postgres adapter if no unique fields given
SqlGenerator
- any
INSERT,UPDATE,SELECTandDELETErequests uses quoted tables/columns if they are created byQueryBuilder::ExpressionBuilder(raw SQL is placed as-is) .select_clauseuses specified query attributes to select and fall back to custom fields only if there is no custom attribute to select
Migration
TableBuilder::ChangeTablenow performsDropForeignKey,DropIndex&DropReferencebefore any column manipulation- fix
TableBuilder::ChangeEnumto use specified adapter to query effected tables