Skip to content

Instantly share code, notes, and snippets.

@Soremwar
Soremwar / oracle-data-modeler-index.js
Created June 14, 2023 22:11
Showcase Oracle Data Modeler capabilities for programatic creation of primary key and index creation
var console = {log: function(msg){ model.getAppView().logMessage(msg); }}
function getColumn(elements, name) {
for (var x in elements) {
var column = elements[x];
if (column.getName() == name) {
return column;
}
}
@Soremwar
Soremwar / oracle-data-modeler-rm.js
Last active July 5, 2023 17:31
This gist showcases the functionality of Oracle data modeler for creating tables programatically
// How to access Relational models globally and create schemas and tables within it
var console = {
log: function(msg) {
model.getAppView().logMessage(msg);
}
}
var RELATIONAL_MODEL = "test";
var SCHEMA = "test";