Categorygithub.com/m-sadykov/go-example-app
module
0.0.0-20240815115024-71d5a4ad31fc
Repository: https://github.com/m-sadykov/go-example-app.git
Documentation: pkg.go.dev

# README

go-example-app

Built with gin and gorm

Run project

go run cmd/api/main.go

Migrations

sql-migrate

SQL Schema migration tool for Go. Based on gorp and goose.

Installation

To install the library and command line program, use the following:

go get -v github.com/rubenv/sql-migrate/...

For Go version from 1.18, use:

go install github.com/rubenv/sql-migrate/...@latest

Usage

As a standalone tool

$ sql-migrate --help
usage: sql-migrate [--version] [--help] <command> [<args>]

Available commands are:
    down      Undo a database migration
    new       Create a new migration
    redo      Reapply the last migration
    status    Show migration status
    up        Migrates the database to the most recent version available

# Packages

No description provided by the author
No description provided by the author
Package docs Code generated by swaggo/swag.
No description provided by the author