Documentation
¶
Overview ¶
Package dqrack is a helping wrapper for Dgraph. It provides a load of useful "marshalling" functions to allow lazy work.
Pronounced "d-crack"
Index ¶
- Variables
- type Dqrack
- func (dq *Dqrack) ConnectNodes(v1 Qrackable, pred string, v2 Qrackable) error
- func (dq *Dqrack) Fetch(v Qrackable, preds []string) (n *protos.Node, err error)
- func (dq *Dqrack) Node(v Qrackable) (n Node, err error)
- func (dq *Dqrack) PutNode(v Qrackable) (n dgraph.Node, err error)
- func (dq *Dqrack) Run(req *dgraph.Req) (*protos.Response, error)
- func (dq *Dqrack) Scan(identity string, v interface{}) error
- type Node
- type QDataable
- type QTypeable
- type Qrackable
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Dqrack ¶
Dqrack is a set of cheap tricks, like any other cheap trick library.
func (*Dqrack) ConnectNodes ¶
func (*Dqrack) Fetch ¶
Node fetches a node based on a Qrackable struct. An empty node can be tested for with n.String() == ""
func (*Dqrack) Node ¶
Node fetches a node based on a Qrackable struct. An empty node can be tested for with n.String() == ""
Click to show internal directories.
Click to hide internal directories.