qmetrics.net

MySQL

Pure Go driver for database/sql

DatabasesDesktop/CLI app

Go MySQL Driver implements Go’s database/sql driver interface for MySQL and MariaDB. Import the package and use the standard database/sql API with a mysql DSN.

Overview

This driver connects Go applications to MySQL-compatible servers without C bindings. It is a native Go implementation that plugs into database/sql, handling connection pooling, prepared statements, and protocol details behind the familiar Go database APIs.

Documented capabilities include automatic recovery from broken connections, large query support, LONG DATA handling in prepared statements, optional parsing of time.Time values, Unicode charset configuration, TLS and compression options including optional zstd when an extra package is imported, and controlled LOAD DATA LOCAL INFILE with allowlisting.

Configuration happens through a DSN string or Config struct, with many tunable parameters for timeouts, collation, interpolation, OIDC-related auth hooks, and connection liveness checks. The maintainers list MySQL 8.0+ and MariaDB 10.11+ as supported targets for their issue handling, and note compatibility with several third-party MySQL variants without guaranteed support.

Typical usage imports the driver anonymously, opens a sql.DB with driver name mysql, and sets recommended pool limits such as connection max lifetime and open idle counts to match server and middleware behavior.

Key features

  • database/sql driver interface
  • Native Go implementation
  • Connection pool integration
  • Prepared statement support
  • TLS and compression options
  • LOAD DATA LOCAL INFILE controls
  • context.Context query support
  • Configurable DSN parameters

Use cases

  • Go apps talking to MySQL
  • MariaDB backends in Go services
  • sql.DB connection pooling
  • Secure local INFILE imports
  • Production Go microservices data layer

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

★ 65.6k⟳ todaySource-available
DatabasesSelf-hostable

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

★ 52.7k⟳ 3 days agoApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+2

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift