mattn / mattn/go-sqlite3

Include UUID extension

Open
#1,331 2 comments 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.