Documentation ¶
Index ¶
- func Bool(val bool, nq *graph.NQuad) error
- func Date(date time.Time, nq *graph.NQuad) error
- func Datetime(date time.Time, nq *graph.NQuad) error
- func Float(val float64, nq *graph.NQuad) error
- func Int(val int32, nq *graph.NQuad) error
- func Str(val string, nq *graph.NQuad) error
- func Uid(uid uint64) string
- func ValueFromGeoJson(json string, nq *graph.NQuad) error
- type BatchMutation
- type Counter
- type Op
- type Req
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BatchMutation ¶
type BatchMutation struct {
// contains filtered or unexported fields
}
func NewBatchMutation ¶
func NewBatchMutation(ctx context.Context, conn *grpc.ClientConn, size int, pending int) *BatchMutation
func (*BatchMutation) AddMutation ¶
func (batch *BatchMutation) AddMutation(nq graph.NQuad, op Op) error
func (*BatchMutation) Counter ¶
func (batch *BatchMutation) Counter() Counter
func (*BatchMutation) Flush ¶
func (batch *BatchMutation) Flush()
type Req ¶
type Req struct {
// contains filtered or unexported fields
}
Req wraps the graph.Request so that we can define helper methods for the client around it.
func (*Req) AddMutation ¶
To add a mutation with a DELETE operation
if err := req.AddMutation(graph.NQuad{ Sub: "alice", Pred: "name", Value: client.Str("Alice"), }, client.DEL); err != nil {
.... handle error .... }
Click to show internal directories.
Click to hide internal directories.