genna

package
v0.0.0-...-45b908b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(tables []table) []table

Sort sorts table by schema and name (public tables always first)

Types

type Genna

type Genna struct {
	DB    orm.DB
	Store *store

	Logger *zap.Logger
	// contains filtered or unexported fields
}

Genna is struct should be embedded to custom generator when genna used as library

func New

func New(url string, logger *zap.Logger) Genna

New creates Genna

func (*Genna) Read

func (g *Genna) Read(selected []string, followFK bool, useSQLNulls bool) ([]model.Entity, error)

Read reads database and gets entities with columns and relations

Jump to

Keyboard shortcuts

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