Package POS - lisp (JSCL) persistence objects.
It is intended for use in the Moren environment.
Development
- create - create/open object
- bind - bind object instance and variable
- save - save object to local-storage or file-system
Create local-storage object with name "Some" and default template = {}
(let ((dbo (pos:create "Some" :storage :ls))
(instance))
(pos:bind instance dbo)
(jso:_set (instance "name") "Jaan")
(jso:_set (instance "profile") nil)
(jso:_set (instance "kpi") (jso:mk "k1" 0.11 "k2" 1.1 "k3" -0.1))
(pos:save dbo)))
Create object which will be expired 2019/04/12 at 00:00:00
(pos:create "name" :storage :ls :default template-1
:expire (expire-date :year 2019 :month 3 :day 12)
Lisp packages: :json-file :jso
Copyright © 2017,2018 Vladimir Mezentsev
GNU General Public License v3.0