https://github.com/gowon/gofer
Gofer is a simple database migration utility.
https://github.com/gowon/gofer
database dotnet migrations sql
Last synced: 2 months ago
JSON representation
Gofer is a simple database migration utility.
- Host: GitHub
- URL: https://github.com/gowon/gofer
- Owner: gowon
- License: mit
- Created: 2020-11-26T18:37:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-04T04:45:39.000Z (over 5 years ago)
- Last Synced: 2025-08-17T01:32:57.984Z (10 months ago)
- Topics: database, dotnet, migrations, sql
- Language: C#
- Homepage: https://www.nuget.org/packages/Gofer.Tools/
- Size: 489 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gofer
Gofer is a simple database migration CLI utility.
## Usage
### Create
```shell
create:
Create a database
Usage:
gofer create [options]
Arguments:
Specify the name of the database to be created
Options:
-c, --connection-string Specify SQL Server connection string
-f, --force Force delete of database if it already exists
-v, --verbosity Set output verbosity [default: Warning]
-?, -h, --help Show help and usage information
```
### Migrate
```shell
migrate:
Perform database migrations
Usage:
gofer migrate [options] []
Arguments:
Path to migration scripts (leave blank for current directory)
Options:
-c, --connection-string Specify SQL Server connection string
-d, --dryrun Perform a dry-run instead of executing migration scripts
-j, --journal Specify journal schema and name [default:
dbo._MigrationJournal]
-l, --limit Specify a limit on the amount of scripts to execute from
the current position in the migration journal. A
negative number will run all but N
-o, --output Specify custom path for the HTML report
-p, --pretend Journal scripts without actually executing content
-r, --report Generate an HTML report of the scripts to be executed
during the migration
-v, --verbosity Set output verbosity [default: Warning]
-?, -h, --help Show help and usage information
```
## Dependencies
The following libraries are used in this tool:
- [System.CommandLine](https://github.com/dotnet/command-line-api)
- [DbUp](https://github.com/DbUp/DbUp)
- [MediatR](https://github.com/jbogard/MediatR)
- [Serilog](https://github.com/serilog/serilog)
## License
MIT