qmetrics.net

Pg

Go PostgreSQL client and ORM

DatabasesMaintenance modeDesktop/CLI app

Pg is in maintenance mode: “go-pg is in a maintenance mode and only critical issues are addressed.” source

Pg screenshot

go-pg is a Go PostgreSQL client and ORM focused on PostgreSQL-specific types, relations, and performance-oriented query features.

Overview

go-pg connects Go applications to PostgreSQL with an ORM layer for models, relations, and raw SQL, plus a client that exposes PostgreSQL features such as LISTEN/NOTIFY, COPY FROM/TO, array and hstore types, JSON marshalling for structs, and context-aware queries.

Models support nullable fields, composite keys, has-one, belongs-to, has-many, and many-to-many associations. The library offers insert-on-conflict helpers, bulk inserts and updates, common table expressions, EXPLAIN-based row estimates, and iterators that process rows without loading entire result sets into memory. Connection pooling includes circuit breaker support and retries on network errors.

Install with Go modules using github.com/go-pg/pg/v10. Connections accept option structs or postgres:// URLs, with Ping and ExecContext for health checks. Documentation and examples cover schema creation, inserts, selects with relations, and lower-level scanning APIs.

The project is in maintenance mode addressing only critical issues; new feature development has moved to the Bun ORM, which targets PostgreSQL, MySQL, MariaDB, and SQLite. Existing go-pg users are directed to Bun for ongoing enhancements.

Key features

  • PostgreSQL ORM and raw SQL
  • JSON, arrays, and hstore types
  • LISTEN, NOTIFY, and COPY
  • Relation mapping helpers
  • Bulk insert and update
  • Context-aware queries
  • Connection pool with retries
  • Insert on conflict support

Use cases

  • Go apps on PostgreSQL
  • JSONB and array-heavy schemas
  • Relational model CRUD
  • Pub/sub via NOTIFY

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