thulasi-ram / point-of-sale.go

Point of Sale system in go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go install github.com/kyleconroy/sqlc/cmd/sqlc@latest

# if pgx should be the driver..makes sense if migrate is used as a library
go install -tags 'pgx' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

# if postgres should be the driver..makes sense if migrate is used as a cli
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

migrate -source file://internal/db/migrations -database "$DATABASE_URL" up

migrate create --dir internal/db/migrations --ext sql create_products

if you get

when running migrate -> error: database driver: unknown driver postgresql/pgx (forgotten import?)

go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest

About

Point of Sale system in go

License:GNU Lesser General Public License v2.1


Languages

Language:Go 93.5%Language:PLpgSQL 6.5%