const DefaultMigrationsLabel = "SchemaMigration"
var ( StatementSeparator = []byte(";") DefaultMultiStatementMaxSize = 10 * 1 << 20 // 10 MB )
var ( ErrNilConfig = fmt.Errorf("no config") )
func WithInstance(driver neo4j.Driver, config *Config) (database.Driver, error)
type Config struct { MigrationsLabel string MultiStatement bool MultiStatementMaxSize int }
type MigrationRecord struct { Version int Dirty bool }
type Neo4j struct {
// contains filtered or unexported fields
}
func (n *Neo4j) Close() error
func (n *Neo4j) Drop() (err error)
func (n *Neo4j) Lock() error
local locking in order to pass tests, Neo doesn't support database locking
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)