Skip to content

Commit 34b5394

Browse files
fixup! Removed pq dependencies
Signed-off-by: Alexandros Filios <alexandros.filios@ibm.com>
1 parent 9d64c9f commit 34b5394

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

integration/nwo/fsc/node/node_template.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ package main
1616
1717
import (
1818
fscnode "github.com/hyperledger-labs/fabric-smart-client/node"
19+
{{- if InstallPostgres }}
20+
_ "github.com/lib/pq"
21+
{{ end }}
1922
2023
{{ if InstallView }}viewregistry "github.com/hyperledger-labs/fabric-smart-client/platform/view"{{ end }}
2124
{{- range .Imports }}

platform/view/services/db/driver/sql/common/test_utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111

1212
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/dbtest"
1313
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/driver"
14+
_ "github.com/lib/pq"
15+
_ "modernc.org/sqlite"
1416
)
1517

1618
type provider[V any] func(name string) (V, error)

platform/view/services/db/driver/sql/postgres/persistence.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212

1313
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/flogging"
1414
_ "github.com/jackc/pgx/v5/stdlib"
15+
_ "github.com/lib/pq"
1516
)
1617

1718
var logger = flogging.MustGetLogger("view-sdk.db.postgres")

platform/view/services/db/driver/sql/postgres/sql_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212

1313
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/driver"
1414
common2 "github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/driver/sql/common"
15+
_ "github.com/lib/pq"
16+
_ "modernc.org/sqlite"
1517
)
1618

1719
func TestPostgres(t *testing.T) {

platform/view/services/db/driver/sql/postgres/test_utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import (
2727
"github.com/docker/go-connections/nat"
2828
"github.com/hashicorp/consul/sdk/freeport"
2929
"github.com/hyperledger-labs/fabric-smart-client/integration/nwo/common/docker"
30+
_ "github.com/lib/pq"
31+
_ "modernc.org/sqlite"
3032
)
3133

3234
type Logger interface {

platform/view/services/db/driver/sql/sqlite/sql_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import (
1111

1212
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/driver"
1313
common2 "github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/driver/sql/common"
14+
_ "github.com/lib/pq"
1415
"github.com/stretchr/testify/assert"
16+
_ "modernc.org/sqlite"
1517
)
1618

1719
func TestSqlite(t *testing.T) {

0 commit comments

Comments
 (0)