Documentation ¶
Index ¶
- Constants
- Variables
- func WithInstance(driver neo4j.Driver, 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) RunFunctionMigration(fn source.MigrationFunc) 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 ¶
View Source
const DefaultMigrationsLabel = "SchemaMigration"
Variables ¶
View Source
var ( StatementSeparator = []byte(";") DefaultMultiStatementMaxSize = 10 * 1 << 20 // 10 MB )
View Source
var ErrNilConfig = fmt.Errorf("no config")
Functions ¶
Types ¶
type MigrationRecord ¶
type Neo4j ¶
type Neo4j struct {
// contains filtered or unexported fields
}
func (*Neo4j) RunFunctionMigration ¶
func (n *Neo4j) RunFunctionMigration(fn source.MigrationFunc) error
Click to show internal directories.
Click to hide internal directories.