Skip to content

Multiple Schema Concept

Ayhan Rashidov edited this page Sep 8, 2022 · 5 revisions

When working with schemas currently there are 2 options:

  1. Import all artifacts into one schema.
  2. Import all artifacts into multiple schemas. In order for artifacts to be visible inside all schemas public synonyms will be created. (one synonym for each data structure)

Currently Kronos supports the second option.

For example: If we import a .hdbtable artifact that contains schemaName, the artifact will be created inside that schema and a public synonym will be created with the same name as the artifact.

table.schemaName = "MYSCHEMA";
table.tableType = COLUMNSTORE; 
table.columns = [
	{name = "ID"; sqlType = INTEGER; nullable = false;}];
table.primaryKey.pkcolumns = ["ID"];

This concept is supported for:

Operation Artifact First Option Supported Second option Supported Comment
Create/Delete/Update Table ✔️
Create/Delete/Update View ✔️ There is no update operation, the view is dropped and then recreated.
Create/Delete/Update Procedure
Create/Delete/Update Functions

Clone this wiki locally