Global.helma.Database.query (sql)
Sourcecode in /home/hannes/helma/modules/helma/Database.js:
80:   this.query = function(sql) {
81:           var statement = connection.createStatement();
82:           var resultSet = statement.executeQuery(sql);
83:           var metaData = resultSet.getMetaData();
84:           var max = metaData.getColumnCount();
85:           var result = [];
86:           while (resultSet.next()) {
87:               var row = {}
88:               for (var i=1; i<=max; i+=1)
89:                  row[metaData.getColumnName(i)] = resultSet.getString(i);
90:              result.push(row);
91:          }
92:          return result;
93:      }