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

SQLite support #6

Open
andy-hanson opened this issue Feb 6, 2022 · 0 comments
Open

SQLite support #6

andy-hanson opened this issue Feb 6, 2022 · 0 comments

Comments

@andy-hanson
Copy link
Owner

demo/db.crow uses LMDB. That was easy to port to crow due to having a simple API, but it's not as popular as SQLite, so it would be nice to have an SQLite demo too.

The task would be to write a simple program like demo/db.crow that uses SQLite instead of LMDB. This would involve:

  • Transcribing needed parts of /usr/include/sqlite3.h to a new file in this repository, include/sqlite3.crow.
  • Writing a wrapper library include/crow/db/sqlite3.crow; compared to the underlying include/sqlite3.crow, this should be safe, and use crow types like str instead of C-like types like char*.
  • Write demo/sqlite.crow to show off the library.
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

No branches or pull requests

1 participant