use sql as db driver instead of sqlite
This commit is contained in:
@@ -15,6 +15,7 @@ type args struct {
|
||||
Address string `arg:"--address,env:ADDRESS" default:":3000" help:"what address to listen on" placeholder:"ADDRESS"`
|
||||
APIUsername string `arg:"--api-username,required,env:API_USERNAME" help:"username for API" placeholder:"USERNAME"`
|
||||
APIPassword string `arg:"--api-password,required,env:API_PASSWORD" help:"password for API" placeholder:"PASSWORD"`
|
||||
DBConnection string `arg:"--db,required,env:DB_CONNECTION" help:"DSN in format: https://github.com/go-sql-driver/mysql#dsn-data-source-name"`
|
||||
}
|
||||
|
||||
func (args) Version() string {
|
||||
@@ -35,5 +36,6 @@ func main() {
|
||||
Address: args.Address,
|
||||
APIUsername: args.APIUsername,
|
||||
APIPassword: args.APIPassword,
|
||||
DSN: args.DBConnection,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user