Skip to content

loadExtension() #316

@baptistapedro

Description

@baptistapedro

Hello,
I amusing sql.js on browser on my emscripten project.
I am trying to load an .wasm extension but it doesnt seem to support loadExtension()

config = {
    locateFile: filename => `/dist/${filename}`
}

initSqlJs(config).then(function(SQL){
    var db = new SQL.Database();
    db.loadExtension('myout.wasm');
    db.run("SELECT TESTFUNC('CREATE TABLE foo (bar TEXT)')");
});

Can you tell me what's the right way to load it?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions