-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Conversion to a Pure Golang implementation of SQLite #77
Comments
As I mentioned here, switching drivers is a breaking change. #72 (comment) |
Maybe create a new driver ? Like Because the CGO requirement is really akward |
have you tried https://github.com/glebarez/sqlite |
This can be done relatively easily using Go's tags to switch between drivers. modernc.org/sqlite contains a near drop-in replacement of the current driver. I've done this locally and will submit a PR shortly, regardless of if it gets merged. |
This implements a pure-go alternative driver whenever CGO_ENABLED=0 Related: go-gorm#93 Fixes: go-gorm#35 Fixes: go-gorm#72 Fixes: go-gorm#77 Fixes: go-gorm#160
Describe the feature
The feature which I am happy to do a PR for is to remove the use of the existing CGO based SQLite implementation with a pure Golang based implementation here.
Motivation
The CGO libraries are a HUGE pain with Windows machines and even other machines without the GCC binaries and specific settings. It does not compile well in many scenarios. This conversion appears to be solid and is a direct conversion of the C libraries of the original implementation.
Related Issues
The text was updated successfully, but these errors were encountered: