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

fix: require cgo for Open #4

Merged
merged 1 commit into from
Jul 16, 2021
Merged

fix: require cgo for Open #4

merged 1 commit into from
Jul 16, 2021

Conversation

Stebalien
Copy link
Member

We still allow users to reference the rest of the types without CGO to make things easier for users. But we put Open (and the tests) behind a cgo build flag.

This will let us deploy our unified CI.

We still allow users to reference the rest of the types without CGO to
make things easier for users. But we put Open (and the tests) behind a
cgo build flag.

This will let us deploy our unified CI.
@Stebalien
Copy link
Member Author

Before: importing this library required CGO.
Now: calling Open requires CGO, importing works fine.

Copy link

@mvdan mvdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI another alternative might be https://pkg.go.dev/modernc.org/sqlite, which is the original C sqlite translated to pure Go. It's not perfect but it's pretty advanced. Depends on how much you value stability/experience versus portability and compilation speed.

@Stebalien Stebalien merged commit d17802d into main Jul 16, 2021
@Stebalien
Copy link
Member Author

Let's start here for now.

@Stebalien Stebalien deleted the fix/cgo branch July 16, 2021 16:55
@anorth
Copy link
Member

anorth commented Jul 19, 2021

Thanks!

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.

3 participants