Skip to content

Commit

Permalink
Merge pull request #26 from dipdup-io/remove-unused-orms
Browse files Browse the repository at this point in the history
Remove unused ORM
  • Loading branch information
aopoltorzhicky authored Feb 14, 2024
2 parents 96099be + ecdb385 commit cb135f8
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 461 deletions.
4 changes: 0 additions & 4 deletions database/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ const (

func newDatabase(ctx context.Context, typ string, cfg config.Database) (Database, error) {
switch typ {
case "gorm":
return NewGorm(), nil
case "pg-go":
return NewPgGo(), nil
case "bun":
return NewBun(), nil
default:
Expand Down
163 changes: 0 additions & 163 deletions database/gorm.go

This file was deleted.

134 changes: 0 additions & 134 deletions database/pg.go

This file was deleted.

28 changes: 7 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module github.com/dipdup-net/go-lib

go 1.20
go 1.21

require (
github.com/dave/jennifer v1.7.0
github.com/docker/go-connections v0.4.0
github.com/ebellocchia/go-base58 v0.1.0
github.com/go-pg/pg/v10 v10.10.6
github.com/go-playground/validator/v10 v10.15.0
github.com/go-playground/validator/v10 v10.18.0
github.com/go-testfixtures/testfixtures/v3 v3.9.0
github.com/golang/mock v1.6.0
github.com/gorilla/websocket v1.5.0
Expand All @@ -26,13 +25,9 @@ require (
github.com/uptrace/bun v1.1.14
github.com/uptrace/bun/dialect/pgdialect v1.1.14
github.com/yhirose/go-peg v0.0.0-20210804202551-de25d6753cf1
golang.org/x/crypto v0.17.0
golang.org/x/crypto v0.19.0
golang.org/x/text v0.14.0
gopkg.in/yaml.v3 v3.0.1
gorm.io/driver/mysql v1.5.1
gorm.io/driver/postgres v1.5.2
gorm.io/driver/sqlite v1.5.2
gorm.io/gorm v1.25.3
)

require (
Expand All @@ -53,23 +48,17 @@ require (
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/docker/docker v24.0.7+incompatible // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/go-faster/city v1.0.1 // indirect
github.com/go-faster/errors v0.6.1 // indirect
github.com/go-pg/zerochecker v0.2.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-sql-driver/mysql v1.7.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgx/v5 v5.4.3 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
Expand All @@ -95,19 +84,16 @@ require (
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
github.com/vmihailenco/bufpool v0.1.11 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
github.com/vmihailenco/tagparser v0.1.2 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
go.opentelemetry.io/otel v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.19.0 // indirect
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea // indirect
golang.org/x/mod v0.11.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/tools v0.10.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/grpc v1.58.3 // indirect
google.golang.org/protobuf v1.31.0 // indirect
mellium.im/sasl v0.3.1 // indirect
)
Loading

0 comments on commit cb135f8

Please sign in to comment.