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

Database.each() does not bind correctly when installed with Bun #1802

Open
SanderGi opened this issue Sep 22, 2024 · 1 comment
Open

Database.each() does not bind correctly when installed with Bun #1802

SanderGi opened this issue Sep 22, 2024 · 1 comment
Labels

Comments

@SanderGi
Copy link

Issue Summary

Everything binds correctly with Bun except the each() method. Calling the each() method causes the following error:

dyld[75263]: missing symbol called
zsh: abort      bun run index.ts

Steps to Reproduce

  1. bun init a new empty project
  2. bun install sqlite3
  3. Add the following code to index.ts
import sqlite3 from 'sqlite3';

const db = new sqlite3.Database('data.db');
db.each('SELECT * FROM sessions', (err, row) => {
    console.log(row);
});
  1. Run it with bun run index.ts

Version

5.1.7

Node.js Version

Bun 1.1.29

How did you install the library?

M1 MacBook Pro (MacOS 14.6.1). MacOS Bun binary with curl -fsSL https://bun.sh/install | bash

@SanderGi SanderGi added the bug label Sep 22, 2024
@SanderGi
Copy link
Author

More details in this issue: SanderGi/sqlite-auto-migrator#1

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

No branches or pull requests

1 participant