Programmatically create database and namespace

Object Data Model, Caché

Is there any COS API to create the database (with designated path) and the namespace ?

Also, the API to attach a given database to a given namespace?


  • 0
  • 0
  • 298
  • 0
  • 2


Yes. Use the SYS.Database class to create a .DAT file, Config.Databases to create a database definition (what we used to call a dataset), and Config.Namespaces to create a namespace. These are all in %SYS, so you'll need the appropriate privileges.