package
0.15.3
Repository: https://github.com/flume/enthistory.git
Documentation: pkg.go.dev

# README

Schemast

Ended up needing to make a handful of custom modifications to schemast so I brought it in here.

Credit to https://github.com/ent/contrib for the original implementation.

# Functions

Annotation is an Annotator that searches a map of well-known ent annotation (entproto, entsql, etc.) and invokes that Annotator if found.
Edge converts a *edge.Descriptor back into an *ast.CallExpr of the ent edge package that can be used to construct it.
Field converts a *field.Descriptor back into an *ast.CallExpr of the ent field package that can be used to construct it.
Header modifies Print to include a comment at the top of the printed .go files.
Index converts an *index.Descriptor back into an *ast.CallExpr of the ent Index package that can be used to construct it.
Load loads a *schemast.Context from a path.
Mutate applies a sequence of mutations to a Context.

# Variables

No description provided by the author

# Structs

Context represents an ent schema directory, parsed and loaded as ASTs, such that schema type declarations can be analyzed an manipulated by different programs.
No description provided by the author
UpsertSchema implements Mutator.

# Interfaces

Mutator changes a Context.

# Type aliases

Annotator takes a schema.Annotation and returns an AST node that can be used to build that annotation.
PrintOption modifies the behavior of Print.