Written by

Senior Startups and Community Programs Manager at InterSystems Corporation
Question Evgeny Shvarov · Nov 22, 2016

Create Namespace snippet

Does anyone have a snippet to create the Namespace and database with defaults in one command?

Something like:

do ##class(Utils.Namespace).Create(Name)

Please share?

Thank you in advance!

Comments

Evgeny Shvarov  Nov 27, 2016 to Andreas Schneider

Thanks Andreas, that's interesting!

It's getting even more interesting with Web Terminal where is the sql mode enabled:

But "CREATE DATABASE" SQL expression creates only the Namespace and Database, but it doesn't create the default web app and the CSP/Namespace folder in case if you need it too.

0