Go MySQL

Open-source Go projects categorized as MySQL

Top 23 Go MySQL Projects

  1. Gogs

    Gogs is a painless self-hosted Git service

    Project mention: Revolutionize Your Workflow: Gogs, the Self-Hosted Git Server You've Been Waiting For! | dev.to | 2025-04-20

    View the Project on GitHub

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. tidb

    TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications.

    Project mention: RocksDB: Your Key-Value Store Powerhouse (and Why You Should Care) | dev.to | 2025-02-16

    TiDB: https://pingcap.com/

  4. vitess

    Vitess is a database clustering system for horizontal scaling of MySQL.

    Project mention: Hacking the Postgres Wire Protocol | news.ycombinator.com | 2025-04-15

    > I am wondering, why it took so long for something like this to happen for Postgres

    > We were thinking about adding PostgreSQL support to Vitess several years ago. However, we realized that it would be more efficient if each tool was focused on a specific task.

    https://github.com/vitessio/vitess/issues/7084#issuecomment-...

  5. dolt

    Dolt – Git for Data

    Project mention: Dolt as a backing database for blockchains | dev.to | 2025-03-24

    Before Dolt appeared on my radar, I thought this problem was non-trivial, and very difficult to implement: Whenever a fork occurs, or blocks arrive at your node that conflict with your current chain, you have to validate these new blocks against a snapshot of your data at a specific point in time. This point in time is determined by the parent block hash of the incoming blocks. This requirement for "time-travel" has always deterred me from attempting my own blockchain implementation. I know that there are blockchains out there that have (maybe?) solved this, but I'm not as good as a programmer as those guys. If you're anything like me, maybe you can relate.

  6. migrate

    Database migrations. CLI and Golang library.

    Project mention: Mastering Database Migrations in Go with golang-migrate and SQLite | dev.to | 2025-04-14

    Managing database changes is critical for any software project. This guide walks you through using golang-migrate with SQLite in Go to handle migrations cleanly and consistently.

  7. go-sql-driver/mysql

    Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package (by go-sql-driver)

    Project mention: HTMX + Go : Build a CRUD App with Golang and HTMX | dev.to | 2024-07-15

    Next, we need to install some dependencies. We already know we are using MySQL as our database, thus, we need to install the MySQL driver for Golang.

  8. sqlc

    Generate type-safe code from SQL

    Project mention: Sqlc: Generate type-safe code from SQL | news.ycombinator.com | 2025-04-16
  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. gh-ost

    GitHub's Online Schema-migration Tool for MySQL

  11. bytebase

    World's most advanced database DevSecOps solution for Developer, Security, DBA and Platform Engineering teams. The GitHub/GitLab for database DevSecOps.

    Project mention: Postgres 🐘 vs. SQL Server: a Complete Comparison βš–οΈ in 2025 | dev.to | 2025-04-01

    This post is maintained by Bytebase, an open-source database DevSecOps tool that can manage both Postgres and SQL Server. We update the post every year.

  12. go-clean-arch

    Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture

    Project mention: GO β€” Estrutura de projetos | dev.to | 2024-06-18

    https://dev.to/booscaaa/implementando-clean-architecture-com-golang-4n0a https://github.com/golang-standards/project-layout https://blog.boot.dev/golang/golang-project-structure/ https://github.com/bnkamalesh/goapp https://www.wolfe.id.au/2020/03/10/how-do-i-structure-my-go-project/ https://blog.logrocket.com/flat-structure-vs-layered-architecture-structuring-your-go-app/ https://developer20.com/how-to-structure-go-code/ https://dev.to/jinxankit/go-project-structure-and-guidelines-4ccm https://github.com/bxcodec/go-clean-arch https://golangexample.com/example-go-clean-architecture-folder-pattern/ https://www.calhoun.io/flat-application-structure/ https://go.dev/doc/effective_go#names https://go.dev/blog/package-names

  13. usql

    Universal command-line interface for SQL databases

    Project mention: Why is database support in every language bad? | news.ycombinator.com | 2025-03-02

    frameworks / ORM are just specilized database graphical user interface front ends designed to simplify how data is displayed/inputed

    Database management systems usually provide a way of importing/exporting 'raw' data via sql statement(s) results. aka cvs, comma delimited, html formatted, json formatted, etc. aka do command line sql query with 'html formatted output' and open results of file in a brower.

    postgres psql provides an interactive 'cli' environment; windows sql server - sqlcmd;

    usql[1] provides something similar to psql for no-sql databases.

    sqlc is sorta the equivalent of combining the command line shell & sql queries. SQLx rust is rust extention for handling 'sql from command line, just via rust language, instead of going through command line shell.'

    ----

    [1] : https://github.com/xo/usql

  14. goose

    A database migration tool. Supports SQL migrations and Go functions. (by pressly)

    Project mention: How to handle migrations in Golang | dev.to | 2024-06-11

    goose

  15. SQLBoiler

    Generate a Go ORM tailored to your database schema.

    Project mention: Eradicating N+1s: The Two-Phase Data Load and Render Pattern in Go | news.ycombinator.com | 2024-05-28

    If you're using Go, sqlboiler can do this for you in most common cases (e.g., fetch all the Users matching this filter, and for each User, fetch the related Company)

    https://github.com/volatiletech/sqlboiler

  16. kingshard

    A high-performance MySQL proxy

  17. dbmate

    πŸš€ A lightweight, framework-agnostic database migration tool.

    Project mention: FastAPI in Prod: Handling DB migrations, auth, and more | dev.to | 2025-02-18

    dbmate – A simple, language-agnostic approach to managing database migrations.

  18. octosql

    OctoSQL is a query tool that allows you to join, analyse and transform data from multiple databases and file formats using SQL.

    Project mention: Feldera Incremental Compute Engine | news.ycombinator.com | 2024-09-29
  19. bun

    SQL-first Golang ORM (by uptrace)

  20. space-cloud

    Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes

  21. neosync

    Open Source Data Security Platform for Developers to Monitor and Detect PII, Anonymize Production Data and Sync it across environments.

    Project mention: PostgreSQL Anonymizer | news.ycombinator.com | 2025-01-17

    Just to jump in here -> We support RDS + more and you can self-host, Neosync.

    https://github.com/nucleuscloud/neosync

    (I'm one of the co-founders)

  22. xo

    Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server (by xo)

    Project mention: Sqlc: Compile SQL to type-safe code | news.ycombinator.com | 2024-09-08

    XO doesn’t have them built-in, but it uses easily customizable templates.

    I added support for a bunch of postgres fancy stuff in a previous app, it wasn’t too difficult

    https://github.com/xo/xo

  23. tbls

    tbls is a CI-Friendly tool to document a database, written in Go.

    Project mention: Show HN: Outerbase Studio – Open-Source Database GUI | news.ycombinator.com | 2024-12-04

    Two more tools I really enjoy:

    - https://www.beekeeperstudio.io/ - electron based and I find it really simple to use.

    - https://github.com/k1LoW/tbls - generate markdown docs from databases (similar to DbVisualizer, but it's a static binary and you can just push the md files - see https://github.com/bbkane/envelope/tree/master/dbdoc for example)

  24. upper.io/db

    Data Access Layer (DAL) for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.

  25. goxygen

    Generate a modern Web project with Go and Angular, React, or Vue in seconds 🎲

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go MySQL discussion

Log in or Post with

Go MySQL related posts

  • Getting Forked by Microsoft

    28 projects | news.ycombinator.com | 21 Apr 2025
  • Declarative Schemas for Simpler Database Management

    10 projects | news.ycombinator.com | 3 Apr 2025
  • Postgres 🐘 vs. SQL Server: a Complete Comparison βš–οΈ in 2025

    1 project | dev.to | 1 Apr 2025
  • Top 10 MySQL Monitoring Tools

    1 project | dev.to | 24 Mar 2025
  • Show HN: Nao1215/sqluv – simple terminal UI for RDBMS and local CSV/TSV/LTSV

    1 project | news.ycombinator.com | 21 Mar 2025
  • A Simpler Way to Find & Fix Slow MySQL Queries for Developers

    1 project | dev.to | 20 Mar 2025
  • KubeBlocks – Run production-grade databases easily on Kubernetes

    1 project | news.ycombinator.com | 14 Mar 2025
  • A note from our sponsor - InfluxDB
    influxdata.com | 21 Apr 2025
    Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems. Learn more β†’

Index

What are some of the best open-source MySQL projects in Go? This list will help you:

# Project Stars
1 Gogs 46,227
2 tidb 38,290
3 vitess 19,469
4 dolt 18,540
5 migrate 16,488
6 go-sql-driver/mysql 14,739
7 sqlc 14,792
8 gh-ost 12,665
9 bytebase 12,275
10 go-clean-arch 9,520
11 usql 9,338
12 goose 8,151
13 SQLBoiler 6,853
14 kingshard 6,413
15 dbmate 5,894
16 octosql 5,024
17 bun 4,119
18 space-cloud 3,967
19 neosync 3,845
20 xo 3,806
21 tbls 3,742
22 upper.io/db 3,585
23 goxygen 3,573

Sponsored
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com