use sql as db driver instead of sqlite

This commit is contained in:
2022-05-16 00:27:52 +02:00
parent 508e109734
commit f0254a6370
8 changed files with 64 additions and 44 deletions

View File

@@ -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,
})
}