Versions in this module Expand all Collapse all v0 v0.8.4 Jul 24, 2021 v0.8.3 Jul 24, 2021 v0.8.2 Jul 22, 2021 v0.8.1 Jul 22, 2021 Changes in this version + const FuncSelector + func BatchCreate(ctx context.Context, drv dialect.Driver, spec *BatchCreateSpec) error + func CountNodes(ctx context.Context, drv dialect.Driver, spec *QuerySpec) (int, error) + func CreateNode(ctx context.Context, drv dialect.Driver, spec *CreateSpec) error + func DeleteNodes(ctx context.Context, drv dialect.Driver, spec *DeleteSpec) (int, error) + func HasNeighbors(q *sql.Selector, s *Step) + func HasNeighborsWith(q *sql.Selector, s *Step, pred func(*sql.Selector)) + func IsConstraintError(err error) bool + func IsForeignKeyConstraintError(err error) bool + func IsUniqueConstraintError(err error) bool + func Neighbors(dialect string, s *Step) (q *sql.Selector) + func QueryEdges(ctx context.Context, drv dialect.Driver, spec *EdgeQuerySpec) error + func QueryNodes(ctx context.Context, drv dialect.Driver, spec *QuerySpec) error + func SetNeighbors(dialect string, s *Step) (q *sql.Selector) + func UpdateNode(ctx context.Context, drv dialect.Driver, spec *UpdateSpec) error + func UpdateNodes(ctx context.Context, drv dialect.Driver, spec *UpdateSpec) (int, error) + func WrapFunc(s func(*sql.Selector)) *entql.CallExpr + type BatchCreateSpec struct + Nodes []*CreateSpec + type ConstraintError struct + func (e ConstraintError) Error() string + type CreateSpec struct + Edges []*EdgeSpec + Fields []*FieldSpec + ID *FieldSpec + Schema string + Table string + type DeleteSpec struct + Node *NodeSpec + Predicate func(*sql.Selector) + type EdgeMut struct + Add []*EdgeSpec + Clear []*EdgeSpec + type EdgeQuerySpec struct + Assign func(out, in interface{}) error + Edge *EdgeSpec + Predicate func(*sql.Selector) + ScanValues func() [2]interface{} + type EdgeSpec struct + Bidi bool + Columns []string + Inverse bool + Rel Rel + Schema string + Table string + Target *EdgeTarget + type EdgeSpecs []*EdgeSpec + func (es EdgeSpecs) FilterRel(r Rel) EdgeSpecs + func (es EdgeSpecs) GroupRel() map[Rel][]*EdgeSpec + func (es EdgeSpecs) GroupTable() map[string][]*EdgeSpec + type EdgeTarget struct + IDSpec *FieldSpec + Nodes []driver.Value + type FieldMut struct + Add []*FieldSpec + Clear []*FieldSpec + Set []*FieldSpec + type FieldSpec struct + Column string + Type field.Type + Value driver.Value + type Node struct + Edges map[string]struct{ ... } + Fields map[string]*FieldSpec + Type string + type NodeSpec struct + Columns []string + ID *FieldSpec + Schema string + Table string + type NotFoundError struct + func (e *NotFoundError) Error() string + type QuerySpec struct + Assign func(columns []string, values []interface{}) error + From *sql.Selector + Limit int + Modifiers []func(*sql.Selector) + Node *NodeSpec + Offset int + Order func(*sql.Selector) + Predicate func(*sql.Selector) + ScanValues func(columns []string) ([]interface{}, error) + Unique bool + type Rel int + const M2M + const M2O + const O2M + const O2O + func (r Rel) String() (s string) + type Schema struct + Nodes []*Node + func (g *Schema) AddE(name string, spec *EdgeSpec, from, to string) error + func (g *Schema) EvalP(nodeType string, p entql.P, selector *sql.Selector) error + func (g *Schema) MustAddE(name string, spec *EdgeSpec, from, to string) + type Step struct + Edge struct{ ... } + From struct{ ... } + To struct{ ... } + func NewStep(opts ...StepOption) *Step + type StepOption func(*Step) + func Edge(rel Rel, inverse bool, table string, columns ...string) StepOption + func From(table, column string, v ...interface{}) StepOption + func To(table, column string) StepOption + type UpdateSpec struct + Assign func(columns []string, values []interface{}) error + Edges EdgeMut + Fields FieldMut + Node *NodeSpec + Predicate func(*sql.Selector) + ScanValues func(columns []string) ([]interface{}, error)