© 2024 InterSystems Corporation, Cambridge, MA. All rights reserved.Privacy & TermsGuaranteeSection 508Contest Terms
added iris.script
Creating and deleting db, namespace, resource and role with one command
Forked from https://openexchange.intersystems.com/package/isc-generate-db
Added resource and role creation for the database. (Many modules ZPM require MatchRoles=”:{$dbrole}”)
Added deletion of DataBases, role resources and Namespace.
Adding rest application is optional.
zpm:USER>install appmsw-util
Make sure you have git and Docker desktop installed.
Clone/git pull the repo into any local directory
$ git clone https://github.com/SergeyMi37/appmsw-util.git
Open the terminal in this directory and run:
$ docker-compose build
$ docker-compose up -d
Open IRIS terminal:
$ docker-compose exec iris iris session iris
USER>
USER>zpm
zpm:USER>install appmsw-util
...
example:
write $System.Status.GetErrorText(##class(appmsw.util.database).CreateDBNS("TESTDB2"))
write $System.Status.GetErrorText(##class(appmsw.util.database).DeleteDBNS("TESTDB2"))
...