Download Latest Version v1.16.0 source code.zip (453.9 kB)
Email in envelope

Get an email when there's a new version of Lapis

Home / v1.16.0
Name Modified Size InfoDownloads / 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 -- Add types.params_map validation type, the params compatible variant of types.map_of

Changes

  • model:update will now only assign the update object to the model instance if the update completes successfully
  • model:update support the returns option to control the RETURNING clause of the generated query
  • model:update when timestamps are enabled, the generated updated_at value is assigned to the model instance

Fixes

  • lapis.validate.types -- Fix bug where types.params_shape would not return the state object
  • model:update will avoid storing db.raw values on passed as update object to the model instance if the update does not complmete successfully
Source: README.md, updated 2023-11-02