Documentation ¶
Overview ¶
Package storage provides everything from MySQL, Redis, BoltDB, file etc functions.
DB Schema Go Generation ¶
Will be written on our own as all code generation tools have some serious architectural flaw. See package codegen.
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
UUID or GUID as Primary Keys? Be Careful! UUID vs Auto increment integers: https://news.ycombinator.com/item?id=14523523 https://tomharrisonjr.com/uuid-or-guid-as-primary-keys-be-careful-7b2aa3dcb439
I would argue that using a PK in any public context is a bad idea.
Best of Both: Integers Internal, UUIDs External.
Directories ¶
Path | Synopsis |
---|---|
Package lru implements a LRU cache.
|
Package lru implements a LRU cache. |
Package null contains types which can be NULL in some storage engines.
|
Package null contains types which can be NULL in some storage engines. |
Package objcache transcodes arbitrary Go types to bytes and stores them in a cache reducing GC.
|
Package objcache transcodes arbitrary Go types to bytes and stores them in a cache reducing GC. |