Skip to content

Create Database

agershun edited this page Dec 12, 2014 · 6 revisions

Alasql Databases

To create Alasql 'native' database:

    alasql('CREATE DATABASE mybase');

External Databases

To create external (localStorage on IndexedDB) database:

    alasql('CREATE LOCALSTORAGE DATABASE lsbase');

When you create external database, you need to attach database before usage:

    alasql('CREATE INDEXEDDB DATABASE ixbase');
    alasql('ATTACH INDEXEDDB DATABASE ixbase AS myixdb');
Clone this wiki locally