Versions in this module Expand all Collapse all v230 v230.0.1 Apr 19, 2023 Changes in this version + var ErrAborted = errors.New("Transaction has been aborted. Please retry") + 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) + func DialCloud(endpoint, key string) (*grpc.ClientConn, error) + type Dgraph struct + func NewDgraphClient(clients ...api.DgraphClient) *Dgraph + func (d *Dgraph) Alter(ctx context.Context, op *api.Operation) error + func (d *Dgraph) GetJwt() api.Jwt + func (d *Dgraph) Login(ctx context.Context, userid string, password string) error + func (d *Dgraph) LoginIntoNamespace(ctx context.Context, userid string, password string, namespace uint64) error + func (d *Dgraph) NewReadOnlyTxn() *Txn + func (d *Dgraph) NewTxn() *Txn + func (d *Dgraph) Relogin(ctx context.Context) error + 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) Do(ctx context.Context, req *api.Request) (*api.Response, error) + func (txn *Txn) Mutate(ctx context.Context, mu *api.Mutation) (*api.Response, error) + func (txn *Txn) Query(ctx context.Context, q string) (*api.Response, error) + func (txn *Txn) QueryRDF(ctx context.Context, q string) (*api.Response, error) + func (txn *Txn) QueryRDFWithVars(ctx context.Context, q string, vars map[string]string) (*api.Response, error) + func (txn *Txn) QueryWithVars(ctx context.Context, q string, vars map[string]string) (*api.Response, error) v230.0.1-rc1 Apr 19, 2023 Other modules containing this package github.com/dgraph-io/dgo github.com/dgraph-io/dgo/v2