1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.helma.sqlshell.Datasource.prototype.getSchemas
(meta)
</tt></big><br>
73 Get an array of schema names defined in the current database.
<br><br>
87 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
89 <td>Sourcecode in helmaTools.zip/Global/helma.sqlshell.js:
90 <pre><font color=
"#aaaaaa">115:
</font> helma.sqlshell.Datasource.prototype.getSchemas = function(meta) {
91 <font color=
"#aaaaaa">116:
</font> <font color=
"#33aa00"> // get available schemas and set up an array for the drop down box:
92 <font color=
"#aaaaaa">117:
</font> </font> var schemas = [];
93 <font color=
"#aaaaaa">118:
</font> var t = meta.getSchemas();
94 <font color=
"#aaaaaa">119:
</font> while (t.next()) {
95 <font color=
"#aaaaaa">120:
</font> var s = t.getString(
1);
96 <font color=
"#aaaaaa">121:
</font> schemas.push([s, s]);
97 <font color=
"#aaaaaa">122:
</font> }
98 <font color=
"#aaaaaa">123:
</font> return schemas;
99 <font color=
"#aaaaaa">124:
</font> }