Skip to content
Mathias Rangel Wulff edited this page Jun 12, 2015 · 2 revisions

Keyword NEW

The AlaSQL NEW operator is the same as JavaScript new operator.

You need to register JavaScript class with alasql.fn variable:

    alasql.fn.MyClass = function() {};
    alasql('SELECT NEW MyClass()');

See also: [User-defined functions](User-defined functions)

Clone this wiki locally