From 98df78c5936a9ad32db6302f2baae732a7aa513b Mon Sep 17 00:00:00 2001 From: Denis Shkrut Date: Tue, 24 Mar 2020 15:53:28 +0200 Subject: [PATCH] Add an import postgress driver --- db/db.go | 1 + go.mod | 1 + go.sum | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/db/db.go b/db/db.go index 8d0c099..2ef048b 100644 --- a/db/db.go +++ b/db/db.go @@ -5,6 +5,7 @@ import ( "fmt" _ "github.com/go-sql-driver/mysql" "github.com/jmoiron/sqlx" + _ "github.com/lib/pq" "os" "strings" ) diff --git a/go.mod b/go.mod index 0646408..3ace24f 100644 --- a/go.mod +++ b/go.mod @@ -6,4 +6,5 @@ require ( github.com/go-sql-driver/mysql v1.5.0 github.com/jmoiron/sqlx v1.2.0 github.com/joho/godotenv v1.3.0 + github.com/lib/pq v1.3.0 ) diff --git a/go.sum b/go.sum index 759e3c1..091b5eb 100644 --- a/go.sum +++ b/go.sum @@ -5,5 +5,9 @@ github.com/jmoiron/sqlx v1.2.0 h1:41Ip0zITnmWNR/vHV+S4m+VoUivnWY5E4OJfLZjCJMA= github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/lib/pq v1.0.0 h1:X5PMW56eZitiTeO7tKzZxFCSpbFZJtkMMooicw2us9A= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.3.0 h1:/qkRGz8zljWiDcFvgpwUpwIAPu3r07TDvs3Rws+o/pU= +github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/mattn/go-sqlite3 v1.9.0 h1:pDRiWfl+++eC2FEFRy6jXmQlvp4Yh3z1MJKg4UeYM/4= github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=