Documentation
¶
Overview ¶
Package dbtype contains definitions of supported database types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Date ¶
type Duration ¶
Duration represents temporal amount containing months, days, seconds and nanoseconds. Supports longer durations than time.Duration
type InvalidValue ¶
func (*InvalidValue) String ¶
func (i *InvalidValue) String() string
type LocalDateTime ¶
func (LocalDateTime) String ¶
func (t LocalDateTime) String() string
String returns the string representation of this LocalDateTime in ISO-8601 compliant form: `YYYY-MM-DDThh:mm:ss.nnnnnnnnn`.
func (LocalDateTime) Time ¶
func (t LocalDateTime) Time() time.Time
Time casts LocalDateTime to time.Time
Note that the resulting time.Time will have its location set to time.Local. From the DBMS's perspective, however, a LocalDateTime is considered to not have any timezone information.
type LocalTime ¶
type Node ¶
type Node struct {
// Deprecated: Id is deprecated and will be removed in 6.0. Use ElementId instead.
Id int64 // Id of this Node.
ElementId string // ElementId of this Node.
Labels []string // Labels attached to this Node.
Props map[string]any // Properties of this Node.
}
Node represents a node in the neo4j graph database
func (Node) GetElementId ¶
func (Node) GetProperties ¶
type Path ¶
type Path struct {
Nodes []Node // All the nodes in the path.
Relationships []Relationship
}
Path represents a directed sequence of relationships between two nodes. This generally represents a traversal or walk through a graph and maintains a direction separate from that of any relationships traversed. It is allowed to be of size 0, meaning there are no relationships in it. In this case, it contains only a single node which is both the start and the end of the path.
type Point2D ¶
type Point2D struct {
X float64
Y float64
SpatialRefId uint32 // Id of coordinate reference system.
}
Point2D represents a two dimensional point in a particular coordinate reference system.
type Point3D ¶
type Point3D struct {
X float64
Y float64
Z float64
SpatialRefId uint32 // Id of coordinate reference system.
}
Point3D represents a three dimensional point in a particular coordinate reference system.
type Relationship ¶
type Relationship struct {
// Deprecated: Id is deprecated and will be removed in 6.0. Use ElementId instead.
Id int64 // Id of this Relationship.
ElementId string // ElementId of this Relationship.
// Deprecated: StartId is deprecated and will be removed in 6.0. Use StartElementId instead.
StartId int64 // Id of the start Node of this Relationship.
StartElementId string // ElementId of the start Node of this Relationship.
// Deprecated: EndId is deprecated and will be removed in 6.0. Use EndElementId instead.
EndId int64 // Id of the end Node of this Relationship.
EndElementId string // ElementId of the end Node of this Relationship.
Type string // Type of this Relationship.
Props map[string]any // Properties of this Relationship.
}
Relationship represents a relationship in the neo4j graph database
func (Relationship) GetElementId ¶
func (r Relationship) GetElementId() string
func (Relationship) GetId ¶
func (r Relationship) GetId() int64
func (Relationship) GetProperties ¶
func (r Relationship) GetProperties() map[string]any