Nigeria No1. Music site And Complete Entertainment portal for Music Promotion WhatsApp:- +2349077287056
Tuesday, 21 October 2025
Show HN: GoSMig – minimal, type-safe SQL migrations written in Go https://bit.ly/47A93R8
Show HN: GoSMig – minimal, type-safe SQL migrations written in Go I built GoSMig for my own projects and open-sourced it in case it helps others. It’s a tiny generic library (no external deps except golang.org/x/term) for writing SQL migrations in Go with compile-time checks. It supports transactional and non-transactional migrations, rollback, status, version, and a small CLI handler so you can ship your own migration binary. Why another migrator? - Minimal API, no DSL or file layout to learn - Type-safe via Go generics - Works with database/sql and sqlx out of the box - Should work with any db library (or wrapper) that implements some generic interfaces (see the "Core Types" section here https://bit.ly/4hGxnod... ) - Tested with PostgreSQL, should work with any SQL RDBMS (MySQL, SQLite, MS SQL Server, ...) Repo: https://bit.ly/3JpsZNt Docs & examples: README + examples branch https://bit.ly/4hqiciE Would love feedback: ergonomics, missing guardrails, API rough edges, and real-world gotchas, etc. https://bit.ly/3JpsZNt October 21, 2025 at 10:35PM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment