Skip to content

<pathTo>/mydatabase.sqlite #125

@MarioVanDenEijnde

Description

@MarioVanDenEijnde

Hello SQL.js team,

It seems your solution always uses a path to get the database which is a problem because we don't know what the path is in all the different devices.
But why don't you just use the basic window.openDatabase approach?

    if (!window.openDatabase) {
        alert('not supported');
    } else {
        var shortName = 'mydatabase';
        var version = ''; // '1.0'; // '';
        var displayName = 'My Important Database';
        var maxSize = 65536; // in bytes
        var mydb = openDatabase(shortName, version, displayName, maxSize);


Please advise,
Kind regards,
Mario

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions