From b07d75df06591165e739d805dba0574d5453ef86 Mon Sep 17 00:00:00 2001 From: syui Date: Mon, 26 Feb 2024 19:59:52 +0900 Subject: [PATCH] fix --- go.mod | 1 + go.sum | 2 ++ main.go | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index fab473f..9452e85 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,7 @@ require ( entgo.io/ent v0.11.10 github.com/go-faster/errors v0.6.1 github.com/go-faster/jx v0.42.0-alpha.1 + github.com/lib/pq v1.10.7 github.com/mattn/go-sqlite3 v1.14.16 github.com/mazen160/go-random v0.0.0-20210308102632-d2b501c85c03 github.com/ogen-go/ogen v0.59.0 diff --git a/go.sum b/go.sum index 06bf920..f8f736f 100644 --- a/go.sum +++ b/go.sum @@ -45,6 +45,8 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kyokomi/lottery v1.2.0/go.mod h1:TkKpJrFrOJNHpblUqYu0bAQWil3NMwKMBluHyqFfU6Y= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= diff --git a/main.go b/main.go index f7d98e9..7a72f24 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,9 @@ import ( "api/ent" "api/ent/ogent" - "entgo.io/ent/dialect" + //"entgo.io/ent/dialect" + //"github.com/jackc/pgx/v4/stdlib" + _ "github.com/lib/pq" _ "github.com/mattn/go-sqlite3" "entgo.io/ent/dialect/sql/schema" "time"