From c4adc8672d831d103e253623e1bef6bd2c4dbe83 Mon Sep 17 00:00:00 2001 From: Sergei Zyubin Date: Wed, 4 Dec 2024 11:37:13 +0100 Subject: [PATCH] feat: add go-ora/v2 driver (#648) feat: add oracledb driver --- drivers.go | 1 + drivers_gen.go | 1 + go.mod | 1 + go.sum | 2 ++ 4 files changed, 5 insertions(+) diff --git a/drivers.go b/drivers.go index 0b2dba31..561a8404 100644 --- a/drivers.go +++ b/drivers.go @@ -8,6 +8,7 @@ import ( _ "github.com/jackc/pgx/v5/stdlib" _ "github.com/lib/pq" _ "github.com/microsoft/go-mssqldb/azuread" + _ "github.com/sijms/go-ora/v2" _ "github.com/snowflakedb/gosnowflake" _ "github.com/vertica/vertica-sql-go" ) diff --git a/drivers_gen.go b/drivers_gen.go index 2e72e617..1fa29697 100644 --- a/drivers_gen.go +++ b/drivers_gen.go @@ -25,6 +25,7 @@ var driverList = map[string][]string{ "github.com/jackc/pgx/v5/stdlib", "github.com/snowflakedb/gosnowflake", "github.com/vertica/vertica-sql-go", + "github.com/sijms/go-ora/v2", }, "custom": { "github.com/mithrandie/csvq-driver", diff --git a/go.mod b/go.mod index 00b9719e..04938c0d 100644 --- a/go.mod +++ b/go.mod @@ -17,6 +17,7 @@ require ( github.com/prometheus/common v0.60.1 github.com/prometheus/exporter-toolkit v0.13.1 github.com/sethvargo/go-envconfig v1.1.0 + github.com/sijms/go-ora/v2 v2.8.22 github.com/snowflakedb/gosnowflake v1.12.0 github.com/vertica/vertica-sql-go v1.3.3 github.com/xo/dburl v0.23.1 diff --git a/go.sum b/go.sum index 3dd21a19..b62cd6fe 100644 --- a/go.sum +++ b/go.sum @@ -199,6 +199,8 @@ github.com/sethvargo/go-envconfig v1.1.0 h1:cWZiJxeTm7AlCvzGXrEXaSTCNgip5oJepekh github.com/sethvargo/go-envconfig v1.1.0/go.mod h1:JLd0KFWQYzyENqnEPWWZ49i4vzZo/6nRidxI8YvGiHw= github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= +github.com/sijms/go-ora/v2 v2.8.22 h1:3ABgRzVKxS439cEgSLjFKutIwOyhnyi4oOSBywEdOlU= +github.com/sijms/go-ora/v2 v2.8.22/go.mod h1:QgFInVi3ZWyqAiJwzBQA+nbKYKH77tdp1PYoCqhR2dU= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/snowflakedb/gosnowflake v1.12.0 h1:Saez8egtn5xAoVMBxFaMu9MYfAG9SS9dpAEXD1/ECIo=