graph

package
v1.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package graph contains a verbose graph traversal.

String acts as a verbose graph traversal in this package. This object has many steps (not all as of yet) to interact with the graph and its schema.

A note about String:

This object implements the Query interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String string

String is used for specific graph related commands.

func NewGraph

func NewGraph() (graph String)

NewGraph will return a new Graphstring ready to be used in a client object.

func (String) AddVertex

func (graph String) AddVertex(params ...interface{}) String

AddVertex will add vertex to graph Note:

  • AddVertex will not handle string formatting because this function can accept any types. Any strings inputted need to be formatted with single quotes beforehand.

Signatures: AddVertex(interface{}...)

func (String) Commit

func (graph String) Commit() String

Commit is used to commit the changes you've made to the schema and apply them. This should be the last step used.

func (String) Make

func (graph String) Make() String

Make makes the graph

func (String) MakeEdgeLabel

func (graph String) MakeEdgeLabel(label string) String

MakeEdgeLabel create a label for a new edge.

func (String) MakePropertyKey

func (graph String) MakePropertyKey(label string, datatype datatype.DataType, cardinality cardinality.Cardinality) String

MakePropertyKey create a label for a new edge.

func (String) MakeVertexLabel

func (graph String) MakeVertexLabel(name string) String

MakeVertexLabel will create a label for a vertex in the graph.

func (String) Multiplicity

func (graph String) Multiplicity(multi multiplicity.Multiplicity) String

Multiplicity sets teh multiplicity of an edge

func (String) OpenManagement

func (graph String) OpenManagement() String

OpenManagement opens the graph management.

func (String) String

func (g String) String() (query string)

String will convert this Query into a regular string for printing or whatever you wish to use it for.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL