fixed displaying empty tables
This commit is contained in:
parent
19e94f036e
commit
47a14e6b82
6 changed files with 268 additions and 11 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue