Documentation
¶
Index ¶
- func ConvertSliceType[T, F any, TS []T, FS []F](fs FS) (TS, error)
- func Cypher(node cypher.SyntaxNode, visitor Visitor[cypher.SyntaxNode]) error
- func Generic[E any](node E, visitor Visitor[E], cursorConstructor func(node E) (*Cursor[E], error)) error
- func PgSQL(node pgsql.SyntaxNode, visitor Visitor[pgsql.SyntaxNode]) error
- type Cursor
- type Order
- type SimpleVisitorFunc
- type Visitor
- type VisitorHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertSliceType ¶
func Cypher ¶
func Cypher(node cypher.SyntaxNode, visitor Visitor[cypher.SyntaxNode]) error
func PgSQL ¶
func PgSQL(node pgsql.SyntaxNode, visitor Visitor[pgsql.SyntaxNode]) error
Types ¶
type Cursor ¶
func (*Cursor[N]) AddBranches ¶
func (s *Cursor[N]) AddBranches(branches ...N)
func (*Cursor[N]) IsFirstVisit ¶
func (*Cursor[N]) NextBranch ¶
func (s *Cursor[N]) NextBranch() N
func (*Cursor[N]) NumBranchesRemaining ¶
type SimpleVisitorFunc ¶
type SimpleVisitorFunc[N any] func(node N, visitorHandler VisitorHandler)
type Visitor ¶
type Visitor[N any] interface { VisitorHandler Enter(node N) Visit(node N) Exit(node N) }
func NewSimpleVisitor ¶
func NewSimpleVisitor[N any](visitorFunc SimpleVisitorFunc[N]) Visitor[N]
func NewVisitor ¶
type VisitorHandler ¶ added in v0.1.4
type VisitorHandler interface {
Consume()
WasConsumed() bool
Done() bool
Error() error
SetDone()
SetError(err error)
SetErrorf(format string, args ...any)
}
func NewCancelableErrorHandler ¶
func NewCancelableErrorHandler() VisitorHandler
Click to show internal directories.
Click to hide internal directories.