sqlxgen

command module
v0.0.0-...-032d852 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 License: MIT Imports: 6 Imported by: 0

README

sqlxgen

Generate SQLx tagged structs from existing database tables

Installation

This package can be installed with the go get command:

go get github.com/kyleconroy/sqlxgen

Usage

$ sqlxgen -pkg=barnes -struct=Book 'dbname=noble' books
package barnes

type Book struct {
  Author string   `db:"author"`
  ISBN   string   `db:"isbn"`
  Price  int      `db:"price"`
}

Documentation

API documentation can be found here: http://godoc.org/github.com/kyleconroy/sqlxgen

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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