Documentation
¶
Index ¶
Constants ¶
View Source
const ( TokenTypeDirective = "directive" TokenTypeText = "text" )
View Source
const ( DirectiveTypeCuttle = "cuttle" DirectiveTypeEnd = "end" DirectiveTypeMigration = "migration" DirectiveTypeApply = "apply" DirectiveTypeStep = "step" DirectiveTypeRevert = "revert" DirectiveTypeRepository = "repository" DirectiveTypeQuery = "query" DirectiveTypeArg = "arg" DirectiveTypeDoc = "doc" DirectiveTypeCol = "col" DirectiveTypeDialect = "dialect" )
Variables ¶
View Source
var ErrDocAlreadyExists = errors.New("doc comment already exists")
View Source
var ErrInvalidInput = errors.New("invalid input")
View Source
var ModeValues = map[string]Mode{ string(ModeExec): ModeExec, string(ModeQueryMany): ModeQueryMany, string(ModeQueryRow): ModeQueryRow, }
Functions ¶
This section is empty.
Types ¶
type DirectiveType ¶
type DirectiveType string
type Repository ¶
type Token ¶
type Token struct { Type TokenType Source string Start int End int Content []string RawLines []string }
func (*Token) IsDirective ¶
func (t *Token) IsDirective(name DirectiveType) bool
func (*Token) ParseDirective ¶
type Unit ¶
type Unit struct { Repositories map[string]*Repository RepositoriesOrder []string }
Click to show internal directories.
Click to hide internal directories.