package neo4j
import "github.com/golang-migrate/migrate/v4/database/neo4j"
Index ¶
- Constants
- Variables
- func WithInstance(config *Config) (database.Driver, error)
- type Config
- type MigrationRecord
- type Neo4j
- func (n *Neo4j) Close() error
- func (n *Neo4j) Drop() (err error)
- func (n *Neo4j) Lock() error
- func (n *Neo4j) Open(url string) (database.Driver, error)
- func (n *Neo4j) Run(migration io.Reader) (err error)
- func (n *Neo4j) SetVersion(version int, dirty bool) (err error)
- func (n *Neo4j) Unlock() error
- func (n *Neo4j) Version() (version int, dirty bool, err error)
Constants ¶
const DefaultMigrationsLabel = "SchemaMigration"
Variables ¶
var StatementSeparator = []byte(";")
Functions ¶
func WithInstance ¶
Types ¶
type Config ¶
type Config struct { AuthToken neo4j.AuthToken URL string // if using WithInstance, don't provide auth in the URL, it will be ignored MigrationsLabel string MultiStatement bool }
type MigrationRecord ¶
type Neo4j ¶
type Neo4j struct {
// contains filtered or unexported fields
}
func (*Neo4j) Close ¶
func (*Neo4j) Drop ¶
func (*Neo4j) Lock ¶
local locking in order to pass tests, Neo doesn't support database locking
func (*Neo4j) Open ¶
func (*Neo4j) Run ¶
func (*Neo4j) SetVersion ¶
func (*Neo4j) Unlock ¶
func (*Neo4j) Version ¶
Source Files ¶
- Version
- v4.9.0
- Published
- Feb 17, 2020
- Platform
- darwin/amd64
- Imports
- 11 packages
- Last checked
- 1 hour ago –
Tools for package owners.