Versions in this module Expand all Collapse all v1 v1.0.0 Aug 23, 2019 Changes in this version + var ErrFinished = errors.New("Transaction has already been committed or discarded") + var ErrReadOnly = errors.New("Readonly transaction cannot run mutations or be committed") + func DeleteEdges(mu *api.Mutation, uid string, predicates ...string) + type Dgraph struct + func NewDgraphClient(clients ...api.DgraphClient) *Dgraph + func (d *Dgraph) Alter(ctx context.Context, op *api.Operation) error + func (d *Dgraph) Login(ctx context.Context, userid string, password string) error + func (d *Dgraph) NewReadOnlyTxn() *Txn + func (d *Dgraph) NewTxn() *Txn + type Txn struct + func (txn *Txn) BestEffort() *Txn + func (txn *Txn) Commit(ctx context.Context) error + func (txn *Txn) Discard(ctx context.Context) error + func (txn *Txn) Mutate(ctx context.Context, mu *api.Mutation) (*api.Assigned, error) + func (txn *Txn) Query(ctx context.Context, q string) (*api.Response, error) + func (txn *Txn) QueryWithVars(ctx context.Context, q string, vars map[string]string) (*api.Response, error) + func (txn *Txn) Sequencing(sequencing api.LinRead_Sequencing) Other modules containing this package github.com/dgraph-io/dgo/v2 github.com/dgraph-io/dgo/v230 github.com/dgraph-io/dgo/v240