Skip to content

Conversation

geakstr
Copy link

@geakstr geakstr commented Aug 20, 2024

  • Renamed init function which is needed for sqlite in the way to follow pattern which is recognizable by db
  • Added cdylib to Cargo.toml crate types to generate extension executable automatically
  • Improved readme to work not only on macos and actually build for release target

- Renamed init function which is needed
for sqlite in the way to follow pattern
which is recognizable by db
- Added `cdylib` to Cargo.toml crate types
to generate extension executable automatically
- Improved readme to work not only on macos and actually build for release target

Signed-off-by: Dmitry Kharitonov <[email protected]>
@koakuma-chan
Copy link

@geakstr were you able to actually get this to work? It still refuses to load for me.

1 | import { Database } from "bun:sqlite";
2 |
3 | const database = new Database();
4 |
5 | database.loadExtension("./libsignal_tokenizer");
             ^
error: error during initialization:
      at <path>/test.ts:5:10

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

Successfully merging this pull request may close these issues.

2 participants