dbtype

package
v4.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 10

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 Date time.Time // Date value, without a time zone and time related components.

func (Date) Time added in v4.2.0

func (t Date) Time() time.Time

Time casts Date to time.Time

type Duration

type Duration struct {
	Months  int64
	Days    int64
	Seconds int64
	Nanos   int
}

Duration represents temporal amount containing months, days, seconds and nanoseconds. Supports longer durations than time.Duration

func (Duration) Equal

func (d1 Duration) Equal(d2 Duration) bool

func (Duration) String

func (d Duration) String() string

String returns the string representation of this Duration in ISO-8601 compliant form.

type LocalDateTime

type LocalDateTime time.Time // Date and time in local timezone

func (LocalDateTime) Time

func (t LocalDateTime) Time() time.Time

Time casts LocalDateTime to time.Time

type LocalTime

type LocalTime time.Time // Time since start of day in local timezone

func (LocalTime) Time added in v4.2.0

func (t LocalTime) Time() time.Time

Time casts LocalTime to time.Time

type Node

type Node struct {
	Id     int64                  // Id of this node.
	Labels []string               // Labels attached to this Node.
	Props  map[string]interface{} // Properties of this Node.
}

Node represents a node in the neo4j graph database

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.

func (Point2D) String

func (p Point2D) String() string

String returns string representation of this point.

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.

func (Point3D) String

func (p Point3D) String() string

String returns string representation of this point.

type Relationship

type Relationship struct {
	Id      int64                  // Identity of this Relationship.
	StartId int64                  // Identity of the start node of this Relationship.
	EndId   int64                  // Identity of the end node of this Relationship.
	Type    string                 // Type of this Relationship.
	Props   map[string]interface{} // Properties of this Relationship.
}

Relationship represents a relationship in the neo4j graph database

type Time

type Time time.Time // Time since start of day with timezone information

func (Time) Time added in v4.2.0

func (t Time) Time() time.Time

Time casts Time to time.Time

Jump to

Keyboard shortcuts

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