migrate vs usql
migrate and usql share 6 technologies: go-sqlite3, MySQL, pgx, pq, SQLite, and github.com/microsoft/go-mssqldb. Both are written in Go.
What they share and what sets them apart
golang-migrate
migrate
Database migrations. CLI and Golang library.
Go19kRead on November 6, 2026, at commit 504568aWhat is migrate built with?Only in migrate
In common
xo
usql
Universal command-line interface for SQL databases
Go10.2kRead on November 14, 2026, at commit d9ce865What is usql built with?Only in usql
- XO
- github.com/duckdb/duckdb-go/v2
- github.com/nakagami/firebirdsql
- github.com/SAP/go-hdb
- github.com/vertica/vertica-sql-go
github.com/ydb-platform/ydb-go-sdk/v3
- github.com/xo/terminfo
Side by side
migrateusql
SizeLines written by people and agents, without generated ones; code files, without tests.
migrate23,328 lines written84 code files
usql31,440 lines written141 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
migrate0.1% of its commits signed by AIWith GitHub Copilot
usql10.8% of its commits signed by AIWith Claude Code
ActivityFrom GitHub and its history, on the day SeeRepo read it.
migrateLast push September 9, 20261,116 commits19,007 stars
usqlLast push November 11, 20261,342 commits10,169 stars
TestsThe files that test the code, and the share of code files a test imports.
migrate57 test files56% of its code files have a test that imports them
usql53 test files58.2% of its code files have a test that imports them
Frequently asked questions
Which is bigger, migrate or usql?
usql, with 31,440 lines written; migrate has 23,328.
The proof: xo/usql's code at commit d9ce865
Which has more GitHub stars, migrate or usql?
migrate, with 19,007 stars; usql has 10,169.
The proof: golang-migrate/migrate on GitHub
Which has more tests, migrate or usql?
migrate, with 57 test files; usql has 53.
Which was updated more recently, migrate or usql?
usql: its last push was on November 11, 2026, and migrate's on September 9, 2026.
The proof: xo/usql's commits on GitHub
Which has more commits signed by AI, migrate or usql?
usql: an AI signed 10.8% of its commits, with Claude Code; in migrate, 0.1%.
The proof: the commits each tool signed in xo/usql
See inside your code, today.
Paste your repo and see it drawn, part by part: a medium one in under a minute.
Free, no account.

