Documentation ¶
Index ¶
- func ActionObjectCall(a *input.Action) *kv.Object
- func ConstraintObjectCall(c *input.Constraint) *kv.Object
- func EdgeGroupObjectCall(eg *input.AssocEdgeGroup) *kv.Object
- func EdgeObjectCall(e *input.AssocEdge) *kv.Object
- func FieldObjectCall(f *input.Field) string
- func GenerateFromInputSchema(cfg *codegen.Config, s *input.Schema) error
- func GenerateSingleSchema(cfg *codegen.Config, data *CodegenData, node string) error
- func IndexObjectCall(i *input.Index) *kv.Object
- func ParseAndGenerateSchema(cfg *codegen.Config, node string, fields []string) error
- type CodegenData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstraintObjectCall ¶
func ConstraintObjectCall(c *input.Constraint) *kv.Object
func EdgeGroupObjectCall ¶
func EdgeGroupObjectCall(eg *input.AssocEdgeGroup) *kv.Object
func EdgeObjectCall ¶
this should be everything we need just need to test it
func FieldObjectCall ¶
returns "" or {primaryKey: true...}
func GenerateFromInputSchema ¶
func GenerateSingleSchema ¶
func GenerateSingleSchema(cfg *codegen.Config, data *CodegenData, node string) error
Types ¶
type CodegenData ¶
type CodegenData struct { Package *codegen.ImportPackage Node string EnumTable bool TableName string HideFromGraphQL bool Fields []*input.Field Edges []*input.AssocEdge Actions []*input.Action EdgeGroups []*input.AssocEdgeGroup Constraints []*input.Constraint Indices []*input.Index DBRows kv.List Class string }
func NewEnumCodegenData ¶
func NewEnumCodegenData(cfg *codegen.Config, schema, col string, values []string) *CodegenData
func (*CodegenData) DBRowsCall ¶
func (c *CodegenData) DBRowsCall() string
func (*CodegenData) Schema ¶ added in v0.1.0
func (c *CodegenData) Schema() string
Click to show internal directories.
Click to hide internal directories.