Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2023-11-02 | 784 Bytes | |
v1.16.0 source code.tar.gz | 2023-11-02 | 331.4 kB | |
v1.16.0 source code.zip | 2023-11-02 | 453.9 kB | |
Totals: 3 Items | 786.1 kB | 0 |
Install
luarocks install lapis
Additions
lapis.validate.types
-- Addtypes.params_map
validation type, the params compatible variant oftypes.map_of
Changes
model:update
will now only assign the update object to the model instance if the update completes successfullymodel:update
support thereturns
option to control theRETURNING
clause of the generated querymodel:update
when timestamps are enabled, the generatedupdated_at
value is assigned to the model instance
Fixes
lapis.validate.types
-- Fix bug wheretypes.params_shape
would not return the state objectmodel:update
will avoid storingdb.raw
values on passed as update object to the model instance if the update does not complmete successfully