neo4j_driver

package
v0.0.0-...-cd5af12 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	BoltPath string
	Port     int
	Session  bolt.Conn
	Error    error
}

func (*Connector) Close

func (conn *Connector) Close()

func (*Connector) Delete

func (db *Connector) Delete(model interface{}, uniqueId uuid.UUID, soft bool) *Connector

func (*Connector) Get

func (db *Connector) Get(model interface{}, uniqueId uuid.UUID) *Connector

func (*Connector) Open

func (conn *Connector) Open(path string, port int) *Connector

func (*Connector) Save

func (db *Connector) Save(model interface{}) *Connector

func (*Connector) SaveNode

func (db *Connector) SaveNode(model interface{}) (*Connector, []Relation)

func (*Connector) SaveRelation

func (db *Connector) SaveRelation(relation Relation) *Connector

func (db *Connector)SaveRelation(model_from interface{}, model_to interface{}, relation_name string) *Connector{

type DatabaseManager

type DatabaseManager interface {
	Save() Model
}

type Model

type Model struct {
	Id        int64     `type:"id"`
	UniqueId  uuid.UUID `type:"unique_id"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time
}

func (*Model) InitParent

func (obj *Model) InitParent() *Model

type Relation

type Relation struct {
	FromNode interface{}
	ToNode   interface{}
	RelName  string
}

Jump to

Keyboard shortcuts

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