{"modulePath":"github.com/networkteam/migrate","version":"v3.5.4+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package postgres\n\n## Variables\n\n```go\nvar (\n\tErrNilConfig      = fmt.Errorf(\"no config\")\n\tErrNoDatabaseName = fmt.Errorf(\"no database name\")\n\tErrNoSchema       = fmt.Errorf(\"no schema\")\n\tErrDatabaseDirty  = fmt.Errorf(\"database is dirty\")\n)\n```\n\n```go\nvar DefaultMigrationsTable = \"schema_migrations\"\n```\n\n## Functions\n\n```go\nfunc WithInstance(instance *sql.DB, config *Config) (database.Driver, error)\n```\n\n## Types\n\n```go\ntype Config struct {\n\tMigrationsTable string\n\tDatabaseName    string\n}\n```\n\n```go\ntype Postgres struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Postgres) Close() error\n```\n\n```go\nfunc (p *Postgres) Drop() error\n```\n\n```go\nfunc (p *Postgres) Lock() error\n```\n[https://www.postgresql.org/docs/9.6/static/explicit-locking.html#ADVISORY-LOCKS](https://www.postgresql.org/docs/9.6/static/explicit-locking.html#ADVISORY-LOCKS)\n\n```go\nfunc (p *Postgres) Open(url string) (database.Driver, error)\n```\n\n```go\nfunc (p *Postgres) Run(migration io.Reader) error\n```\n\n```go\nfunc (p *Postgres) SetVersion(version int, dirty bool) error\n```\n\n```go\nfunc (p *Postgres) Unlock() error\n```\n\n```go\nfunc (p *Postgres) Version() (version int, dirty bool, err error)\n```\n\n","path":"github.com/networkteam/migrate/database/postgres","name":"postgres","synopsis":"","isRedistributable":true}
