Registry / database / liamstask-goose

liamstask-goose

JSON →
library0.0.0-20150115234039-8488cc47d90cgogounverified

Package goose provides a database migration tool for Go, supporting SQL and Go-based migrations.

go get bitbucket.org/liamstask/goose
INSTALL
IMPORT
SIG · LIAMSTASK-GOOSE
L
liamstask-goose
databasegov0.0.0-20150115234039-8488cc47d90c
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

goose
bitbucket.org/liamstask/goose

Runs all collected migrations from a directory.

package main import ( "database/sql" "log" "bitbucket.org/liamstask/goose/lib/goose" ) func main() { db, _ := sql.Open("postgres", "...") migrations, _ := goose.CollectMigrations("./migrations", 0, 0) if err := goose.RunMigrations(db, "./migrations", migrations); err != nil { log.Fatal(err) } }
Debug
Known issues
breakingThis package is no longer maintained; consider using github.com/pressly/goose instead.
fix
Switch to github.com/pressly/goose for active development.
affects: >=0.0.0
Upgrade
Version history
0.0.0-20150115234039-8488cc47d90clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
5
Resources
liamstask-goose — go get liamstask-goose · libregistry