File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /// an example of Installer class just to create a new clear namespace and database IRISAPP
12Class App .Installer
23{
34
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Open IRIS terminal:
3838
3939```
4040$ docker-compose exec iris iris session iris
41- IRISAPP>write ##class(dc.PackageSample .ObjectScript).Test()
41+ IRISAPP>write ##class(dc.sample .ObjectScript).Test()
4242```
4343## How to start coding
4444This repository is ready to code in VSCode with ObjectScript plugin.
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ use it when docker says "There is no space left on device". It will remove built
55docker system prune -f
66```
77
8+ ```
9+ docker rm -f $(docker ps -qa)
10+ ```
11+
12+
813## build container with no cache
914```
1015docker-compose build --no-cache --progress=plain
@@ -59,3 +64,8 @@ zn "%SYS" \
5964
6065zw ##class(community.csvgen).GenerateFromURL("https://github.com/h2oai/h2o-tutorials/raw/master/h2o-world-2017/automl/data/product_backorders.csv ")
6166
67+ Import directory with IRIS code
68+
69+ ```
70+ do $SYSTEM.OBJ.ImportDir("/opt/irisbuild/src",, "ck")
71+ ```
Original file line number Diff line number Diff line change 1- // Unexpire passwords for dev mode
2- zn "%SYS"
3- Do ##class(Security.Users).UnExpireUserPasswords("*")
1+ // Unexpire passwords to simplify dev mode. Comment these two lines for Production use
2+ zn "%SYS"
3+ Do ##class(Security.Users).UnExpireUserPasswords("*")
44
5- // create IRISAPP namespace
6- do $SYSTEM.OBJ.Load("/opt/irisbuild/Installer.cls", "ck")
7- set sc = ##class(App.Installer).setup()
5+ // create IRISAPP namespace
6+ do $SYSTEM.OBJ.Load("/opt/irisbuild/Installer.cls", "ck")
7+ set sc = ##class(App.Installer).setup()
88
9-
10- zn "IRISAPP"
11- zpm "load /opt/irisbuild/ -v":1:1
12- halt
9+ // load all the code of the project as a ZPM package
10+ zn "IRISAPP"
11+ zpm "load /opt/irisbuild/ -v":1:1
12+ halt
Original file line number Diff line number Diff line change 33 <Document name =" intersystems-iris-template.ZPM" >
44 <Module >
55 <Name >intersystems-iris-template</Name >
6- <Version >1.0 .0</Version >
6+ <Version >1.1 .0</Version >
77 <Packaging >module</Packaging >
88 <SourcesRoot >src/iris</SourcesRoot >
9- <Resource Name =" dc.PackageSample .PKG" />
9+ <Resource Name =" dc.sample .PKG" />
1010 </Module >
1111 </Document >
1212</Export >
Original file line number Diff line number Diff line change 1- Class dc .PackageSample .ObjectScript
1+ Class dc .sample .ObjectScript
22{
33
44ClassMethod Test () As %Status
Original file line number Diff line number Diff line change 1- Class dc .PackageSample .PersistentClass Extends %Persistent
1+ Class dc .sample .PersistentClass Extends %Persistent
22{
33
44Property Test As %VarString ;
You can’t perform that action at this time.
0 commit comments