config

package
v2.0.0-...-341ff40 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name       string `yaml:"name"`
	CustomType string `yaml:"customType"`
}

Column represents custom type definitions

type Config

type Config struct {
	Tables      []Table      `yaml:"tables"`
	Inflections []Inflection `yaml:"inflections"`
}

func Load

func Load(path string) (*Config, error)

type Inflection

type Inflection struct {
	Singular string `yaml:"singular"`
	Plural   string `yaml:"plural"`
}

type Table

type Table struct {
	Name    string   `yaml:"name"`
	Columns []Column `yaml:"columns"`
}

Table represents custom type definitions

Jump to

Keyboard shortcuts

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