dsl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AS = 57348
View Source
const FROM = 57347
View Source
const FULL = 57349
View Source
const GENERATE = 57346
View Source
const IDENT = 57355
View Source
const INNER = 57352
View Source
const JCOND = 57357
View Source
const JOIN = 57353
View Source
const LEFT = 57350
View Source
const ON = 57354
View Source
const RIGHT = 57351
View Source
const STRING = 57356

Variables

This section is empty.

Functions

This section is empty.

Types

type DeclCommon

type DeclCommon struct {
	StructName string
	SchemaName string
	TableName  string
	Alias      string

	OptPlural string
}

func (DeclCommon) TableFullName

func (d DeclCommon) TableFullName() string

type Declaration

type Declaration struct {
	DeclCommon
	Options Options
	Joins   Joins
}

func (*Declaration) ParseOptions

func (d *Declaration) ParseOptions() error

func (*Declaration) String

func (d *Declaration) String() string

type Declarations

type Declarations []*Declaration

func (Declarations) String

func (ds Declarations) String() string

type Join

type Join struct {
	DeclCommon
	JoinType string
	OnCond   string
}

func (*Join) String

func (jn *Join) String() string

type Joins

type Joins []*Join

func (Joins) String

func (jns Joins) String() string

type Option

type Option struct {
	Name  string
	Value string
}

func (Option) String

func (opt Option) String() string

type Options

type Options []*Option

func (Options) String

func (opts Options) String() string

type RootDeclaration

type RootDeclaration struct {
	Declarations Declarations
}

func ParseString

func ParseString(filename, src string) (*RootDeclaration, error)

func (*RootDeclaration) String

func (f *RootDeclaration) String() string

Jump to

Keyboard shortcuts

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