Include UUID extension
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 9.2k
- Forks
- 1.2k
- Avg merge
- 19m
- Merged PRs (30d)
- 4
Description
There is a very handy extension for generating UUIDs in sqlite: https://sqlite.org/src/file/ext/misc/uuid.c
It would be nice to include it into go-sqlite3 as a loadable extension.
It's actually very small and shouldn't add too much overhead, so it could also be loaded per default.
I did not really understand how the upgrade tool pulls in extensions, or how I would add the extension there.
As an alternative, one can create a new instance of the driver with a go implementation. I successfully made that work, but it was basically impossible to use with other libraries like ORMs due to the self-initialization nature of the go SQL drivers.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the upgrade tool pulls in extensions, then compare that path with SQLite's ext/misc/uuid.c and the driver's loadable-extension support. Done means the UUID extension is integrated into go-sqlite3, with its loading behavior—default or optional—defined and verified without disrupting use through database/sql libraries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sqlite
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100