storage

package
v0.0.0-...-6f8fa1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package storage provides everything from MySQL, Redis, BoltDB, file, etc functions.

DB Schema Go Generation

bitbucket.org/jatone/genieql sql query and code generation program. its purpose is to generate as much of the boilerplate code for interacting with database/sql as possible. without putting any runtime dependencies into your codebase. it only supports postgresql currently. adding additional support is very straight forward, just implement the Dialect interface. see the postgresql implementation as the example.

github.com/go-reform/reform A better ORM for Go, based on non-empty interfaces and code generation. https://gopkg.in/reform.v1

DB Migrations

github.com/rubenv/sql-migrate 500 Stars SQL Schema migration tool for Go. Based on gorp and goose. Is better because the API for using it within your code (FOSDEM2016).

https://bitbucket.org/liamstask/goose goose is a database migration tool. You can manage your database's evolution by creating incremental SQL or Go scripts. Cons: https://www.reddit.com/r/golang/comments/2dlbz5/database_migration_handling_in_go/

github.com/mattes/migrate 744 Stars A migration helper written in Go. Use it in your existing Golang code or run commands via the CLI.

Directories

Path Synopsis
Package containable implements a container using a key with an expiration.
Package containable implements a container using a key with an expiration.
Package csdb implements MySQL helper for tables, columns, statements, replication, validation and DB variables.
Package csdb implements MySQL helper for tables, columns, statements, replication, validation and DB variables.
Package dbr has additions to Go's database/sql for super fast performance and convenience.
Package dbr has additions to Go's database/sql for super fast performance and convenience.
Package money uses a fixed-length guard for precision arithmetic.
Package money uses a fixed-length guard for precision arithmetic.
Package myreplicator handles the MySQL binary replication protocol.
Package myreplicator handles the MySQL binary replication protocol.
Package text represents a []byte type for storing long text strings (Chars).
Package text represents a []byte type for storing long text strings (Chars).
Package transcache transcodes arbitrary Go types to bytes and stores them in a cache reducing GC.
Package transcache transcodes arbitrary Go types to bytes and stores them in a cache reducing GC.
tcbigcache
Package tcbigcache adapter for the transcache package to use an in-memory cache.
Package tcbigcache adapter for the transcache package to use an in-memory cache.
tcboltdb
Package tcboltdb adapter for the boltdb to use a file based cache.
Package tcboltdb adapter for the boltdb to use a file based cache.
tcredis
Package tcredis implements a wrapper for the Redis server.
Package tcredis implements a wrapper for the Redis server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL