Skip to content

Electronjs application freeze problem on database reading #241

@fkomaralp

Description

@fkomaralp

Hi, I have a question. I'm working on electronjs app and I need a db on this application. My database read code is

    var filebuffer = fs.readFileSync('assets/db/sql.db');

    var db = new SQL.Database(filebuffer);
    var contents = db.exec("SELECT * FROM employees");
    console.log(contents)

While reading database my electronjs app freeze a little bit time. After read database application is working normal. How can I solve this problem? On line SQL.Database(filebuffer)

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