types

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Host     *string `json:"host" yaml:"host"`
	Port     *string `json:"port" yaml:"port"`
	Db       *string `json:"db" yaml:"db"`
	User     *string `json:"user" yaml:"user"`
	Password *string `json:"password" yaml:"password"`
	SslMode  *string `json:"sslmode" yaml:"sslmode"`
	Url      *string `json:"url" yaml:"url"`
}

func (*Database) Connect

func (d *Database) Connect(engine string) (*sqlx.DB, error)

func (*Database) GetUrl

func (d *Database) GetUrl(engine string) (string, error)

func (*Database) Merge

func (d *Database) Merge(other *Database) *Database

func (*Database) String

func (d *Database) String() string

type Gen

type Gen struct {
	Store *GenPartial `json:"store" yaml:"store"`
	Model *GenPartial `json:"models" yaml:"models"`
}

func (*Gen) Merge

func (g *Gen) Merge(other *Gen) *Gen

func (*Gen) String

func (g *Gen) String() string

type GenPartial

type GenPartial struct {
	Path string `json:"path" yaml:"path"`
}

func (*GenPartial) Merge

func (g *GenPartial) Merge(other *GenPartial) *GenPartial

func (*GenPartial) String

func (g *GenPartial) String() string

type Model

type Model struct {
	Schemas []string `json:"schemas" yaml:"schemas"`
	Include []string `json:"include" yaml:"include"`
	Exclude []string `json:"exclude" yaml:"exclude"`
}

func (*Model) Merge

func (m *Model) Merge(other *Model) *Model

func (*Model) String

func (m *Model) String() string

type Option added in v1.0.3

type Option struct {
	MysqlModelBanner        *string `json:"mysqlModelBanner" yaml:"mysqlModelBanner"`
	PostgresModelBanner     *string `json:"postgresModelBanner" yaml:"postgresModelBanner"`
	PostgresInt64JsonString *bool   `json:"postgresInt64JsonString,string" yaml:"postgresInt64JsonString"`
	CreatedDateFields       *string `json:"createdDateFields" yaml:"createdDateFields"`
	UpdatedDateFields       *string `json:"updatedDateFields" yaml:"updatedDateFields"`
}

func (*Option) Merge added in v1.0.3

func (q *Option) Merge(other *Option) *Option

func (*Option) String added in v1.0.3

func (q *Option) String() string

type Query

type Query struct {
	Paths   []string `json:"paths" yaml:"paths"`
	Include []string `json:"include" yaml:"include"`
	Exclude []string `json:"exclude" yaml:"exclude"`
}

func (*Query) Merge

func (q *Query) Merge(other *Query) *Query

func (*Query) String

func (q *Query) String() string

type Source

type Source struct {
	Models  *Model `json:"models" yaml:"models"`
	Queries *Query `json:"queries" yaml:"queries"`
}

func (*Source) Merge

func (s *Source) Merge(other *Source) *Source

func (*Source) String

func (s *Source) String() string

Jump to

Keyboard shortcuts

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