Support the cgo-free SQLite driver (modernc.org/sqlite)
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with the README's description of supported Postgres drivers and inspect the existing database/sql driver handling. Review PR #37, then verify recording and playback with modernc.org/sqlite, including an explicit approach for preserving SQLite error messages and numeric codes.
Written by the indexing model from the issue text.
Description
The README currently states that copyist supports only the Postgres pq and pgx stdlib drivers, and invites contributions for other drivers such as SQLite.
SQLite support would be particularly attractive for the copyist workflow:
- Recording needs no server and no Docker — just a local database file — so the record/playback cycle works anywhere, including minimal CI environments.
- The cgo-free
modernc.org/sqlitedriver keeps builds simple (no C toolchain) and registers as a standarddatabase/sqldriver, which is exactly the level copyist operates at.
One design question a contribution has to answer: modernc.org/sqlite's Error type has unexported fields and no exported constructor, so it cannot be reconstructed during playback the way *pq.Error/*pgconn.PgError are — error fidelity needs an explicit approach (e.g. preserving the message and numeric code).
An implementation of this is proposed in PR #37.
- Dominant language
- Go
- Stars
- 849
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from cockroachdb/copyist
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
cockroachdb/copyist#39 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
cockroachdb/copyist#36 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cockroachdb/copyist#33 · 1 reaction ·
-
Examples, pleasePossibly taken @peczenyj claimed this 169 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 38/100
cockroachdb/copyist#24 · 1 comment ·
-
-record flag exampleOpen
Difficulty 3/5 1-2 days Newbie friendliness 52/100
cockroachdb/copyist#18 · 3 comments ·
All issues in cockroachdb/copyist
Similar issues
-
☢️ Bug v3
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area/import-export area/projects concern/ux
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
go-vikunja/vikunja#4455 · 1 comment ·
Maintainers usually reply within 2 days
-
Dependabot PRs no longer merge automaticallyPossibly taken @dwisiswant0 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
projectdiscovery/urlfinder#160 ·
Maintainers usually reply within 1 day
-
database
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
chnm/legal-modernism#450 ·
Maintainers usually reply within 1 day
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day