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 ¶
- type String
- func (graph String) AddVertex(params ...interface{}) String
- func (graph String) Commit() String
- func (graph String) Make() String
- func (graph String) MakeEdgeLabel(label string) String
- func (graph String) MakePropertyKey(label string, datatype datatype.DataType, cardinality cardinality.Cardinality) String
- func (graph String) MakeVertexLabel(name string) String
- func (graph String) Multiplicity(multi multiplicity.Multiplicity) String
- func (graph String) OpenManagement() String
- func (g String) String() (query string)
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 ¶
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 ¶
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) MakeEdgeLabel ¶
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 ¶
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 ¶
OpenManagement opens the graph management.