8000 Can't connect to posgres db · Issue #3539 · go-gorm/gorm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can't connect to posgres db #3539
Closed
Closed
@lethienhoang

Description

@lethienhoang

GORM Playground Link

go-gorm/playground#1

Description

`import (
"log"
"my-portfolio-api/config"
"my-portfolio-api/models"

"gorm.io/driver/postgres"
"gorm.io/gorm"

)`

db, err := gorm.Open(postgres.New(postgres.Config{ DSN: config.DBURL, DriverName: config.DBDRIVER, }), &gorm.Config{})

I'm still getting the error "sql: unknown driver "postgres" (forgotten import?)". I'm getting error. How to fix it?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0