neo4j

package
Version: v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: MIT Imports: 8 Imported by: 0

README

Neo4j Driver

  • Runs migrations in transcations. That means that if a migration failes, it will be safely rolled back.

  • Stores migration version details with the label SchemaMigrations. An unique constraint for the field :SchemaMigrations(version) will be auto-generated.

  • Neo4j cannot perform schema and data updates in a transaction, therefore it's necessary to use different migration files

Usage

migrate -url neo4j://user:password@host:port/db/data -path ./db/migrations create add_field_to_table
migrate -url neo4j://user:password@host:port/db/data -path ./db/migrations up
migrate help # for more info

Author

Documentation

Overview

Package neo4j implements the Driver interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Close

func (driver *Driver) Close() error

func (*Driver) FilenameExtension

func (driver *Driver) FilenameExtension() string

func (*Driver) Initialize

func (driver *Driver) Initialize(url string) error

func (*Driver) Migrate

func (driver *Driver) Migrate(f file.File, pipe chan interface{})

func (*Driver) Version

func (driver *Driver) Version() (uint64, error)

Source Files

Jump to

Keyboard shortcuts

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