go操作postgresql

go操作postgresql

_ "github.com/lib/pq"

host=localhost port=5432 user=postgres password=asdf dbname=postgres sslmode=disable

db, err := sql.Open("postgres", connstr)

posted @ 2022-07-27 21:34  delphi中间件  阅读(163)  评论(0编辑  收藏  举报