Replies: 3 comments
-
Hi @ma6174, I've been trying to get this part of your discussion to work. Could you elaborate a bit more? How do I only pull in the necessary binaries, especially if I want to remove them from the go-duckdb repository to avoid file size limitations? |
Beta Was this translation helpful? Give feedback.
-
|
just check this repositoriy: https://github.com/ma6174/duckdb-test-lib
|
Beta Was this translation helpful? Give feedback.
-
|
👋 Thanks for starting this discussion! This repository has moved to https://github.com/duckdb/duckdb-go If this topic is still relevant, please continue the conversation at the new location. I'm closing this now as part of the migration. Please see #565 for more details. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
purego project: https://github.com/ebitengine/purego
Benefits:
Problem
If using embed to package the shared library into the binary, it needs to be extracted to a temporary directory before loading.
Related issue: ebitengine/purego#102
Simple example
$ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build $ ./purego duckdb_library_version v1.1.3 duckdb_open result 0 duckdb_connect result 0 {"version":"v1.1.3"} duckdb_query result 0Beta Was this translation helpful? Give feedback.
All reactions