File: disable-gosnowflake

package info (click to toggle)
prometheus-sql-exporter 0.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 600 kB
  • sloc: makefile: 47; sh: 31
file content (34 lines) | stat: -rw-r--r-- 649 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- a/job.go
+++ b/job.go
@@ -4,7 +4,6 @@ import (
 	"fmt"
 	"net/url"
 	"regexp"
-	"strconv"
 	"strings"
 	"time"
 
@@ -16,7 +15,6 @@ import (
 	"github.com/jmoiron/sqlx"
 	_ "github.com/lib/pq" // register the PostgreSQL driver
 	"github.com/prometheus/client_golang/prometheus"
-	"github.com/snowflakedb/gosnowflake"
 )
 
 var (
@@ -132,6 +130,7 @@ func (j *Job) updateConnections() {
 				}
 			}
 			*/
+			/*
 			if newConn.driver == "snowflake" {
 				cfg := &gosnowflake.Config{
 					Account: u.Host,
@@ -164,6 +163,7 @@ func (j *Job) updateConnections() {
 					continue
 				}
 			}
+			*/
 			j.conns = append(j.conns, newConn)
 		}
 	}