fixed displaying empty tables

This commit is contained in:
Philipp 2021-09-24 13:19:44 +02:00
parent 19e94f036e
commit 47a14e6b82
6 changed files with 268 additions and 11 deletions

View file

@ -12,14 +12,13 @@ import (
)
func main() {
dsn := "postgres://postgres:secret@localhost:5432/postgres?sslmode=disable"
dsn := "postgres://postgres:secret@postgres:5432/postgres?sslmode=disable"
store, err := postgres.NewStore(dsn)
if err != nil {
log.Fatal(err)
}
ss, err := store.Servers()
if err != nil {
log.Fatal("There is an issue with the databse: %w", err)