genna

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 10 Imported by: 3

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 *log.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 *log.Logger) Genna

New creates Genna

func (*Genna) Connect added in v1.1.3

func (g *Genna) Connect() error

func (*Genna) Read

func (g *Genna) Read(selected []string, followFK, useSQLNulls bool, goPGVer int, customTypes model.CustomTypeMapping) ([]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