Home Applications isc-generate-db

isc-generate-db

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
284
Views
17
IPM installs
1
10
Details
Releases
Reviews  (1)
Issues
Articles  (2)
Creating a new database, namespace, CSP/REST Application never been so easy.

What's new in this version

IRIS version update, using iris.script, and ZPM !!!

Generate Database

Quality Gate Status

Creating a new database, namespace, CSP/REST Application never been so easy.

Installation

Open a terminal and clone/git pull the repo into any local directory

$ git clone git@github.com:diashenrique/isc-generate-db.git

Open the terminal in this directory and run:

$ docker-compose build
  1. Run the IRIS container with your project:
$ docker-compose up -d

How to Run the Application

Open InterSystems IRIS terminal:

$ docker-compose exec iris iris session iris
USER>zn "IRISAPP"
IRISAPP>do ##class(diashenrique.Utils.GenerateDB).CreateNew()

Options

You can choose the following options during the database creation:

  • Namespace Name
  • Dataset location (If empty, the ClassMethod uses the MGR directory)
  • Make this an Interoperability Namespace
  • If your dataset should be split into CODE and DATA or keep a single dataset for both
  • If a REST Application should be created
    • Answering Y (Yes), a REST Application is created and also a Dispatch class.

Example

$ docker-compose exec iris iris session iris

Do you want to create a new Database/Namespace? (Y/N) : Y

Choose your Namespace name : APPCNT
Choose the Dataset location <Path Default is mgr directory> : /opt/irisapp
Make this an Interoperability namespace? (Y/N) : Y
Do you want to split the database into CODE/DATA? (Y/N) : Y
Create a REST Application? (Y/N) : Y

=======================================
= SUMMARY =

Namespace => APPCNT
Database => APPCNT-CODE / APPCNT-DATA
Dataset Location => /opt/irisapp
Interoperability => Yes
CSP Application => /csp/appcnt
REST Application => /rest/appcnt

Do you want to proceed? (Y/N) : Y
Creating Database APPCNT-CODE... done!
Creating Database APPCNT-DATA... done!
Creating Namespace APPCNT... done!
Creating InterOperability mappings ... done!
Adding InterOperability SQL privileges ... done!
Creating CSP Application ... done!
Creating CSP Application ... done!
Creating REST.Dispatch.cls ... done!

Made with
Install
zpm install isc-generate-db download archive
Version
1.0.218 Nov, 2020
Category
Developer Environment
Works with
CachéInterSystems IRIS
First published
13 Mar, 2020
Last checked by moderator
27 Jun, 2023Works