sqlxgen

package
v0.0.0-...-7eeabce Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(w io.Writer, info *Info) error

Types

type Column

type Column struct {
	Name string
	Type sqlparser.ColumnType
}

func (*Column) GoName

func (c *Column) GoName() (name string)

func (*Column) GoType

func (c *Column) GoType() string

func (*Column) StructTag

func (c *Column) StructTag() string

type Info

type Info struct {
	PackageName string
	Tables      []*Table
}

type Table

type Table struct {
	Name    string
	Columns []*Column
}

Jump to

Keyboard shortcuts

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