Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Create Database using Python

Question
Scott Fadden · Nov 11, 2020

Create Database using Python

I am trying to create a database using python. The example shows setting a Name string and a Properties object containing Directory=.

; Use class methods to create an instance
 %SYS>s Name="ABC"
 %SYS>s Properties("Directory")="c:\abc\"
 %SYS>s Status=##Class(Config.Databases).Create(Name,.Properties)
 %SYS>i '$$$ISOK(Status) w !,"Error="_$SYSTEM.Status.GetErrorText(Status)

How do I update and pass the Directory property using Python?

#Python #InterSystems IRIS for Health

Source URL:https://community.intersystems.com/post/create-database-using-python