Global

Methods

# initSqlJs(config) → {SqlJs}

Asynchronously initializes sql.js

Parameters:
Name Type Description
config SqlJsConfig

module inititialization parameters

Source:
Returns:
Type
SqlJs
Example
initSqlJs({
 locateFile: name => '/path/to/assets/' + name
}).then(SQL => {
 const db = new SQL.Database();
 const result = db.exec("select 'hello world'");
 console.log(result);
})

Type Definitions

# EnergyUnit

Type:
  • Object
Properties
Name Type Description
foo String

kajsdh kajhsd

hello Array.<Array.<String>>

aksjdh kaj shdkj asd

Source:

# EnvironmentConfiguration

Type:
  • Object
Properties
Name Type Description
name String
strange Map.<String, Number>

# SqlJs

Type:
  • Object
Properties
Name Type Description
Database Database

A class that represents an SQLite database

Statement Statement

The prepared statement class

Source:

# SqlJsConfig

Type:
  • Object
Properties
Name Type Description
locateFile function

a function that returns the full path to a resource given its file name

Source: