Sekitar 10 hasil (3.02 detik)
Komunitas lemmy.world

Golang Weekly

Lihat kiriman asli pada platform media sosial terkait.

Komunitas lemmy.bestiver.se

Simple, minimal SQL database migrations written in Go with generics. Std lib database/sql and SQLX supported OOTB

I built GoSMig for personal projects and open-sourced it. It’s a tiny library for writing migrations in Go (compile-time checks via generics). Supports both transactional and non-transactional steps, rollback, status/version commands, and a built-in CLI handler so you can ship your own tool. Zero dependencies (std lib; golang.org/x/term used for pager support) database/sql and sqlx supported out of the box, others would work too tested with PostgreSQL, other RDBMSs would work too Repo: https://github.com/padurean/gosmig Examples: https://github.com/padurean/gosmig/tree/examples Curious how this compares to your current workflow and what would make it adoptable at work. Comments