DataSet.sjs

Summary
DataSet.sjs
Functions
getDsreturns a java DataSource object that can be used as the “ds” option in queries
queryqueries this DataSet as a table named “data”, and returns a Myna.Query object

Functions

getDs

Myna.DataSet.prototype.getDs =function()

returns a java DataSource object that can be used as the “ds” option in queries

Detail

This will create an in-memory H2 database containing a single table “data” which contains the contents of this DataSet.  The return value will be a DataSource that can be used to query this table

query

Myna.DataSet.prototype.query =function(options)

queries this DataSet as a table named “data”, and returns a Myna.Query object

Detail

This will create an in-memory H2 database containing a single table “data” which contains the contents of this DataSet.  This function takes the same options as Myna.Query, except that the ds/dataSource parameter is ignored

Myna.DataSet.prototype.getDs =function()
returns a java DataSource object that can be used as the “ds” option in queries
Myna.DataSet.prototype.query =function(options)
queries this DataSet as a table named “data”, and returns a Myna.Query object
Sql query object