types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrScanOnNil = errors.New("cq: scan value is null")
)

Functions

This section is empty.

Types

type ArrayCypherValue

type ArrayCypherValue struct {
	Val []CypherValue
}

func (*ArrayCypherValue) Scan

func (acv *ArrayCypherValue) Scan(value interface{}) error

func (ArrayCypherValue) Value

func (acv ArrayCypherValue) Value() (driver.Value, error)

type ArrayFloat64

type ArrayFloat64 struct {
	Val []float64
}

func (*ArrayFloat64) Scan

func (af *ArrayFloat64) Scan(value interface{}) error

func (ArrayFloat64) Value

func (af ArrayFloat64) Value() (driver.Value, error)

type ArrayInt

type ArrayInt struct {
	Val []int
}

func (*ArrayInt) Scan

func (ai *ArrayInt) Scan(value interface{}) error

func (ArrayInt) Value

func (ai ArrayInt) Value() (driver.Value, error)

type ArrayInt64

type ArrayInt64 struct {
	Val []int64
}

func (*ArrayInt64) Scan

func (ai *ArrayInt64) Scan(value interface{}) error

func (ArrayInt64) Value

func (ai ArrayInt64) Value() (driver.Value, error)

type ArrayString

type ArrayString struct {
	Val []string
}

func (*ArrayString) Scan

func (as *ArrayString) Scan(value interface{}) error

func (ArrayString) Value

func (as ArrayString) Value() (driver.Value, error)

type Conn

type Conn interface {
	BaseURL() string
}

type CypherType

type CypherType uint8
const (
	CypherNull CypherType = iota
	CypherBoolean
	CypherString
	CypherInt64
	CypherInt
	CypherFloat64
	CypherArrayInt
	CypherArrayInt64
	CypherArrayByte
	CypherArrayFloat64
	CypherArrayString
	CypherArrayCypherValue
	CypherMapStringString
	CypherMapStringCypherValue
	CypherNode
	CypherRelationship
	CypherPath
	CypherValueType
)

supported types

type CypherValue

type CypherValue struct {
	Type CypherType
	Val  interface{}
}

func (CypherValue) ConvertValue

func (cv CypherValue) ConvertValue(v interface{}) (driver.Value, error)

func (*CypherValue) Scan

func (v *CypherValue) Scan(value interface{}) error

func (*CypherValue) UnmarshalJSON

func (c *CypherValue) UnmarshalJSON(b []byte) error

func (*CypherValue) Value

func (cv *CypherValue) Value() (driver.Value, error)

type MapStringCypherValue

type MapStringCypherValue struct {
	Val map[string]CypherValue
}

func (*MapStringCypherValue) Scan

func (msc *MapStringCypherValue) Scan(value interface{}) error

func (MapStringCypherValue) Value

func (msc MapStringCypherValue) Value() (driver.Value, error)

type MapStringString

type MapStringString struct {
	Val map[string]string
}

func (*MapStringString) Scan

func (mss *MapStringString) Scan(value interface{}) error

func (MapStringString) Value

func (mss MapStringString) Value() (driver.Value, error)

type Node

type Node struct {
	LabelURI   string                 `json:"labels"`
	SelfURI    string                 `json:"self"`
	Properties map[string]CypherValue `json:"data"`
}

func (*Node) Labels

func (n *Node) Labels(baseURL string) ([]string, error)

func (*Node) Scan

func (n *Node) Scan(value interface{}) error

type NullTime

type NullTime struct {
	Time  time.Time
	Valid bool
}

func (*NullTime) Scan

func (nt *NullTime) Scan(value interface{}) error

type Relationship

type Relationship struct {
	Type       string                 `json:"type"`
	SelfURI    string                 `json:"self"`
	Properties map[string]CypherValue `json:"data"`
}

func (*Relationship) Scan

func (r *Relationship) Scan(value interface{}) error

Jump to

Keyboard shortcuts

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