Skip to content

Commit cb135f8

Browse files
Merge pull request #26 from dipdup-io/remove-unused-orms
Remove unused ORM
2 parents 96099be + ecdb385 commit cb135f8

File tree

5 files changed

+40
-461
lines changed

5 files changed

+40
-461
lines changed

database/db_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ const (
2020

2121
func newDatabase(ctx context.Context, typ string, cfg config.Database) (Database, error) {
2222
switch typ {
23-
case "gorm":
24-
return NewGorm(), nil
25-
case "pg-go":
26-
return NewPgGo(), nil
2723
case "bun":
2824
return NewBun(), nil
2925
default:

database/gorm.go

Lines changed: 0 additions & 163 deletions
This file was deleted.

database/pg.go

Lines changed: 0 additions & 134 deletions
This file was deleted.

go.mod

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
module github.com/dipdup-net/go-lib
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/dave/jennifer v1.7.0
77
github.com/docker/go-connections v0.4.0
88
github.com/ebellocchia/go-base58 v0.1.0
9-
github.com/go-pg/pg/v10 v10.10.6
10-
github.com/go-playground/validator/v10 v10.15.0
9+
github.com/go-playground/validator/v10 v10.18.0
1110
github.com/go-testfixtures/testfixtures/v3 v3.9.0
1211
github.com/golang/mock v1.6.0
1312
github.com/gorilla/websocket v1.5.0
@@ -26,13 +25,9 @@ require (
2625
github.com/uptrace/bun v1.1.14
2726
github.com/uptrace/bun/dialect/pgdialect v1.1.14
2827
github.com/yhirose/go-peg v0.0.0-20210804202551-de25d6753cf1
29-
golang.org/x/crypto v0.17.0
28+
golang.org/x/crypto v0.19.0
3029
golang.org/x/text v0.14.0
3130
gopkg.in/yaml.v3 v3.0.1
32-
gorm.io/driver/mysql v1.5.1
33-
gorm.io/driver/postgres v1.5.2
34-
gorm.io/driver/sqlite v1.5.2
35-
gorm.io/gorm v1.25.3
3631
)
3732

3833
require (
@@ -53,23 +48,17 @@ require (
5348
github.com/docker/distribution v2.8.2+incompatible // indirect
5449
github.com/docker/docker v24.0.7+incompatible // indirect
5550
github.com/docker/go-units v0.5.0 // indirect
56-
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
51+
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
5752
github.com/go-faster/city v1.0.1 // indirect
5853
github.com/go-faster/errors v0.6.1 // indirect
59-
github.com/go-pg/zerochecker v0.2.0 // indirect
6054
github.com/go-playground/locales v0.14.1 // indirect
6155
github.com/go-playground/universal-translator v0.18.1 // indirect
62-
github.com/go-sql-driver/mysql v1.7.1 // indirect
6356
github.com/gogo/protobuf v1.3.2 // indirect
6457
github.com/golang/protobuf v1.5.3 // indirect
6558
github.com/google/uuid v1.3.0 // indirect
66-
github.com/jackc/pgpassfile v1.0.0 // indirect
67-
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
68-
github.com/jackc/pgx/v5 v5.4.3 // indirect
6959
github.com/jinzhu/inflection v1.0.0 // indirect
70-
github.com/jinzhu/now v1.1.5 // indirect
7160
github.com/klauspost/compress v1.16.5 // indirect
72-
github.com/leodido/go-urn v1.2.4 // indirect
61+
github.com/leodido/go-urn v1.4.0 // indirect
7362
github.com/magiconair/properties v1.8.7 // indirect
7463
github.com/mattn/go-colorable v0.1.13 // indirect
7564
github.com/mattn/go-isatty v0.0.19 // indirect
@@ -95,19 +84,16 @@ require (
9584
github.com/tidwall/match v1.1.1 // indirect
9685
github.com/tidwall/pretty v1.2.1 // indirect
9786
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
98-
github.com/vmihailenco/bufpool v0.1.11 // indirect
9987
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
100-
github.com/vmihailenco/tagparser v0.1.2 // indirect
10188
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
10289
go.opentelemetry.io/otel v1.19.0 // indirect
10390
go.opentelemetry.io/otel/trace v1.19.0 // indirect
10491
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea // indirect
10592
golang.org/x/mod v0.11.0 // indirect
106-
golang.org/x/net v0.17.0 // indirect
107-
golang.org/x/sys v0.15.0 // indirect
93+
golang.org/x/net v0.21.0 // indirect
94+
golang.org/x/sys v0.17.0 // indirect
10895
golang.org/x/tools v0.10.0 // indirect
10996
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
11097
google.golang.org/grpc v1.58.3 // indirect
11198
google.golang.org/protobuf v1.31.0 // indirect
112-
mellium.im/sasl v0.3.1 // indirect
11399
)

0 commit comments

Comments
 (0)