Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Drop postgres requirement for easier adoption

Aberta
#203 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
bun, postgresql, sqlite, typescript
Domínio
database

Direção de pesquisa

Start with the existing Postgres adapter and the storageContract tests, then review how Bun's SQL handles SQLite transactions. Add a SQLite storage adapter for single-user use and ensure concurrent transactions are handled one at a time. Done means the adapter passes storageContract alongside the existing adapters.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

enhancement triage/human-response

Awesome project! While it's in early stages I think this project is most likely to be used single player. With that said making a sqlite adapter I think would be worthwhile.

here's a rough plan from claude

Add a SQLite storage adapter for single-user local use. It seems to fit
the current design:

  • One process already owns writes (the writer lease plus the global advisory
    lock), which is SQLite's normal mode.
  • The Postgres adapter uses Bun's SQL, which also accepts sqlite:// URLs.
    RETURNING, ON CONFLICT, JSON functions and BLOBs work there.
  • storageContract already runs against two adapters, so a third could be
    proven against it.

The main gotcha: Bun's SQLite mode doesn't queue concurrent sql.begin()
calls, so the adapter would need to run transactions one at a time. With a
simple promise queue, 20 concurrent transactions all succeeded; without it,
19 failed.

Linguagem predominante
TypeScript
Estrelas
392
Forks
22
Merge médio
1d 7min
PRs com merge (30d)
203

Preparar o ambiente

  • Inclui um Dockerfile ou arquivo Docker Compose
  • Sem modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de githubnext/chopin

Todas as issues de githubnext/chopin

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.