Got tired of too many abstractions over all the features PostgreSQL provides when using an ORM? But rolling your own persistence code is tedious and there's too much boilderplate? This is a code generator to generate a bunch of st
This is meant to be a Go ORM similar to ActiveRecord.
There are a million Go ORMs, but none of them quite as good as ActiveRecord. sqlboiler comes close, but I don't like the reliance on separate config files, or its lack of a mi
Some simple SQL extensions for Go
go-sx provides some extensions to the standard library database/sql package. It is designed for those who wish to use the full power of SQL without a heavy abstraction layer.
ent - An Entity Framework For Go
Simple, yet powerful ORM for modeling and querying data.
Schema As Code - model any graph schema as Go objects.
Easily Traverse Any Graph - run queries, aggregations and traverse
gosql
The package based on sqlx, It's simple and keep simple
⚠️
Because of some disruptive changes, The current major version is upgraded to V2,If you continue with V1, you can check out the v1 branches ht
SQLBoiler is a tool to generate a Go ORM tailored to your database schema.
It is a "database-first" ORM as opposed to "code-first" (like gorm/gorp). That means you must first create your database schema. Please use some
sqlmapper is a light mapper between golang struct and table rows in db
example
We need to read/write a table in db, like:
CREATE TABLE `test_table` (
`field_key` varchar(64) NOT NULL DEFAULT '',
`field
Toyorm
this is powerful sql orm library for Golang, have some funny features
A Simple Example
Website Example
Database connection
Model definition
example
type translate
Bind models
Marlow is a code generation tool written in golang designed to create useful constructs that provide an ergonomic API for interacting with a project's data persistence layer while maintaining strong compile time type safe
go-queryset
100% type-safe ORM for Go (Golang) with code generation and MySQL, PostgreSQL, Sqlite3, SQL Server support. GORM under the hood.
Contents
Installation
Usage
Define models
R
DBX
DBX is a tool to generate database schemas and code to operate with it. It currently generates Go bindings to Postgres and/or SQLite, but it should be fairly straightforward to add other database and language target
godb - a Go query builder and struct mapper
godb is a simple Go query builder and struct mapper, not a full-featured ORM. godb does not manage relationships.
Initially, godb was a learning project. The goal was to i
Gormigrate
Gormigrate is a migration helper for Gorm. Gorm already have useful migrate functions, just misses proper schema versioning and rollback cababilities.
Supported databases
It supports the da
Zoom
A blazing-fast datastore and querying engine for Go built on Redis.
Requires Redis version >= 2.8.9 and Go version >= 1.2. The latest version of both is recommended.
Full documentation is available on g
upper.io/db.v3
The upper.io/db.v3 package for Go is a productive data access layer for Go that provides a common interface to work with different data sources such as PostgreSQL, MySQL, SQLite, MSSQL, QL and Mongo
Storm
Storm is a simple and powerful toolkit for BoltDB. Basically, Storm provides indexes, a wide range of methods to store and fetch data, an advanced query system, and much more.
In addition to the examples below
reform
A better ORM for Go and database/sql.
It uses non-empty interfaces, code generation (go generate), and initialization-time reflection as opposed to interface{}, type system sidestepping, and runtime refle
Go Relational Persistence
Update 2016-11-13: Future versions
As many of the maintainers have become busy with other projects, progress toward the ever-elusive v2 has slowed to the point that we're only
GORM
The fantastic ORM library for Golang, aims to be developer friendly.
Overview
Full-Featured ORM (almost)
Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism)
Hooks (B
gomodel
gomodel provide another method to interact with database. Instead of reflection, use bitset represent fields of CRUD, sql/stmt cache and generate model code for you, high performance.
Install
$ g
store
store is a data-store library for Go that provides a set of platform-independent interfaces to persist and retrieve data.
Its primary goal is to wrap existing implementations of such primitives, such as those i
Golang ORM
ORM library for Go Golang
Import
import "github.com/dotcoo/orm"
Environment
Database
DROP TABLE IF EXISTS test_user;
CREATE TABLE test_user (
id int(11) NOT NULL AUTO_INC