-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
vtable support #15
Comments
I didn't have any immediate plans, since I haven't really used the feature much myself. Looking at https://sqlite.org/vtab.html, the API surface area is pretty large, so I would want to approach it pretty deliberately to make sure the Go API is reasonable. |
I have been using Would there be any way to make this work if that's correct? Could I somehow build extensions to be loadable by this module/modernc/sqlite? Thanks! |
You are correct that you would not be able to load a shared object with this library: the C symbols would not be present, because modernc transpiles them to Go. IIUC, the package you mention is a way of writing Go code that connects into the SQLite C API. If you can port the usages over to calling the |
Thanks! |
It's a bit outside my experience to add this support through the lens of modern.org/sqlite. It's several layers of obscurity. I did eventually run into performance issues in a Go-to-C extension, callbacks from C to Go put a lot of stress on the Go scheduler. This wouldn't occur for a pure-Go implementation, but you would also be losing the ability to load the extension from C as a loadable extension. |
Thanks for your great work on this! |
You're welcome! Feel free to pull down the latest |
Been playing around with this project and was wondering if you had plans to implement virtual table support?
The text was updated successfully, but these errors were encountered: