Menu

[r36]: / trunk / etc / scripts / debugScript.js  Maximize  Restore  History

Download this file

38 lines (30 with data), 920 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function debugDatabase() {
result = "";
iter = database.getSchemas().values().iterator();
while (iter.hasNext()) {
schema = iter.next();
result += "\n\nSchema " + schema.name + "\n";
iter2 = schema.tables.values().iterator();
while (iter2.hasNext()) {
table = iter2.next();
result += " Table " + table.name + "\n";
iter3 = table.columns.values().iterator();
while (iter3.hasNext()) {
column = iter3.next();
result += " Column " + column.name + "\n";
}
}
}
return result;
}
function debugProperties(obj) {
result = "";
for (props in obj) {
try {
result += props + " " + obj[props] + "\r\n"
} catch (ex) {
result += ex
}
}
return result;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.