Giter Club home page Giter Club logo

isc-generate-db's Introduction

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 [email protected]: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!

isc-generate-db's People

Contributors

diashenrique avatar sergeymi37 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.