qmetrics.net

GORM

Feature-rich ORM library for Go applications

GORM screenshot

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

Overview

GORM is an object-relational mapper for Go that connects application structs to relational databases. It focuses on expressive associations, lifecycle hooks, and batch operations while staying approachable for everyday data access.

Relationship modeling covers has-one, has-many, belongs-to, many-to-many, polymorphism, and single-table inheritance patterns. Hooks run before and after create, save, update, delete, and find events. Loading strategies include Preload and Joins for eager fetching.

Transactions support nesting, savepoints, and rollback to a saved point. The API exposes context-aware queries, prepared statement mode, dry-run mode, batch insert, FindInBatches, and map-based results. A SQL builder handles upserts, locking, optimizer and index hints, named arguments, and expression-based create, update, and search.

Schema tools include composite primary keys, indexes, constraints, and auto migrations. Logging is built in, and a plugin API extends behavior—for example database resolvers for multiple databases or read-write splitting and Prometheus metrics. Each documented feature is backed by tests in the project.

Key features

  • Struct-to-table mapping and auto migrations
  • Rich association types including polymorphism
  • Before and after lifecycle hooks
  • Transactions with savepoints
  • Preload and Joins eager loading
  • SQL builder with upsert and locking hints
  • Plugin API for resolvers and metrics
  • Context, dry-run, and batch operations

Use cases

  • Go web services needing SQL persistence
  • Applications with complex relational models
  • Projects requiring migration automation
  • Read-write splitting via resolver plugins
  • CRUD APIs backed by relational databases

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

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

★ 20.4k⟳ yesterdayApache-2.0

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app

Efcore

.NET object-relational mapper with migrations and LINQ

Entity Framework Core maps .NET objects to relational databases, supports LINQ queries, change tracking, updates, and schema migrations via provider packages.

★ 14.8k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app