github.com/achiku/dgw

dgw generates Golang struct, and simple Table/Row Data Gateway functions from PostgreSQL table metadata


Keywords
db, generator, go, postgresql, sql
License
MIT
Install
go get github.com/achiku/dgw

Documentation

dgw

Build Status GitHub license Go Report Card

Description

dgw generates Table/Row Data Gateway Golang struct from PostgreSQL tables. Heavily inspired by xo.

Installation

go get -u github.com/achiku/dgw

How to use

usage: dgw [<flags>] <conn>

Flags:
  --help             Show context-sensitive help (also try --help-long and --help-man).
  --schema="public"  PostgreSQL schema name
  --typemap=TYPEMAP  type map file path

Args:
  <conn>  PostgreSQL connection string in URL format
dgw postgres://dbuser@localhost/dbname?sslmode=disable