Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In a Node.js environment, throws a resource lock error. #1705

Open
KotoriMinami opened this issue Nov 13, 2023 · 0 comments · May be fixed by #1707
Open

In a Node.js environment, throws a resource lock error. #1705

KotoriMinami opened this issue Nov 13, 2023 · 0 comments · May be fixed by #1707

Comments

@KotoriMinami
Copy link

My basic code is as follows.

import { mySchema } from './model/schema.js'

import SQLiteAdapter from "@nozbe/watermelondb/adapters/sqlite/index.js";

const adapter = new SQLiteAdapter({
    dbName: 'test',
    schema: mySchema,
    onSetUpError: error => {
        // Database failed to load -- offer the user to reload the app or log out
        console.log(error)
    }
})

At this point, running the code produces the following results.
image
How should it be handled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant