| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2023-10-08 | 1.2 kB | |
| v1.15.0 source code.tar.gz | 2023-10-08 | 326.9 kB | |
| v1.15.0 source code.zip | 2023-10-08 | 449.3 kB | |
| Totals: 3 Items | 777.4 kB | 0 | |
Install
luarocks install lapis
Additions
Model:include_incan now use computed keys to dynamically calculate a foreign key value by applying a function to each passed in object to load. This can be done by specifying a function instead of a field name when defining the column mapping table- Relations can use compured keys where appropriate by passing a function instead of a field name when defining the column mapping table
lapis.validate.types-- addtypes.params_arrayfor validating an array of objects with a common shapelapis.validate.types-- addtypes.flatten_errorsfor error output compatibility with tableshapelapis.validate.types--types.params_shapecan now accept numerical names for fields for validating array like objects with a fixed number of entrieslapis generate-- Rockspec generator can now specify--moonscriptand--cqueuesto automatically append dependencieslapis migrate-- Add the--dry-runflag to to run all pending migrations in a transaction that is never commited. (Note: in some databases, there are queries that can not be rolled back)
Misc
- Various updates to documentation
- Fix error message for
types.truncated_text