schema

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 9 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"`
	Type     string `yaml:"type"`
	Nullable bool   `yaml:"-"`
}

func (*Column) ToMember

func (c *Column) ToMember() *types.Member

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader() *Reader

func (*Reader) SchemaFromPath

func (r *Reader) SchemaFromPath(path string) ([]*Schema, error)

type Schema

type Schema struct {
	Name    string       `yaml:"name"`
	Index   *types.INDEX `yaml:"index"`
	Columns []*Column    `yaml:"members"`
}

func (*Schema) FileName

func (s *Schema) FileName() string

func (*Schema) ToClass

func (s *Schema) ToClass() *types.Class

Jump to

Keyboard shortcuts

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