Initial Release
This is a base class that brings two TS properties added to your persistent class, providing time stamps on when it the instance was created and every time it was updated:
Property CreatedAt: %TimeStamp;
Property LastUpdate: %TimeStamp;
module is available on InterSystems Open Exhcange and in a community IPM registry as shvarov-persistent
In IRIS terminal or programmatically do:
zpm "install shvarov-persistent"
or as dependency in your module.xml, within section:
shvarov-persistent 1.*.*
this will install shvarov.persistent package into your IRIS system.
derive shvarov.persistent.base after %Persistent class - this will give you these CreatedAt and LastUpdate properties automatically, e.g.
Class your.persistent.class Extends (%Persistent, shvarov.persistent.base, %JSON.Adaptor)
Clone/git pull the repo into any local directory
$ git clone git@github.com:intersystems-community/iris-persistent-class.git
Open the terminal in this directory and run:
$ docker-compose build
$ docker-compose up -d
this is an open source and use it at your own risk. Feel free to submit issues to the repo and pull requests are more than welcomed
Contribution and feedback are very welcome