proxy.golang.org : github.com/hashicorp/go-dbw : v0.0.0-20230221164137-4b339c55a16e
Package dbw is a database wrapper that supports connecting and using any database with a gorm driver. It's intent is to completely encapsulate an application's access to it's database with the exception of migrations. dbw is intentionally not an ORM and it removes typical ORM abstractions like "advanced query building", associations and migrations. This is not to say you can't easily use dbw for complicated queries, it's just that dbw doesn't try to reinvent sql by providing some sort of pattern for building them with functions. Of course, dbw also provides lookup/search functions when you simply need to read resources from the database. dbw strives to make CRUD for database resources fairly trivial. Even supporting "on conflict" for its create function. dbw also allows you to opt out of its CRUD functions and use exec, query and scan rows directly. You may want to carefully weigh when it's appropriate to use exec and query directly, since it's likely that each time you use them you're leaking a bit of your database schema into your application's domain. For more information see README.md
Registry -
Documentation -
Download -
JSON -
codemeta.json
purl: pkg:golang/github.com/hashicorp/go-dbw@v0.0.0-20230221164137-4b339c55a16e
Published:
Indexed:
- github.com/AlecAivazis/survey/v2 v2.2.9
- github.com/DATA-DOG/go-sqlmock v1.5.0
- github.com/Masterminds/semver/v3 v3.1.1
- github.com/apex/log v1.9.0
- github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
- github.com/bufbuild/buf v0.56.0
- github.com/cpuguy83/go-md2man/v2 v2.0.0
- github.com/davecgh/go-spew v1.1.1
- github.com/fatih/color v1.14.1
- github.com/favadi/protoc-go-inject-tag v1.3.0
- github.com/gofrs/flock v0.8.1
- github.com/gofrs/uuid v4.0.0+incompatible
- github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
- github.com/golang/protobuf v1.5.2
- github.com/google/go-cmp v0.5.6
- github.com/hashicorp/go-hclog v1.4.0
- github.com/hashicorp/go-secure-stdlib/base62 v0.1.2
- github.com/hashicorp/go-uuid v1.0.3
- github.com/inconshreveable/mousetrap v1.0.0
- github.com/jackc/chunkreader/v2 v2.0.1
- github.com/jackc/pgconn v1.14.0
- github.com/jackc/pgio v1.0.0
- github.com/jackc/pgpassfile v1.0.0
- github.com/jackc/pgproto3/v2 v2.3.2
- github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a
- github.com/jackc/pgtype v1.14.0
- github.com/jackc/pgx/v4 v4.18.0
- github.com/jackc/pgx/v5 v5.3.0
- github.com/jhump/protoreflect v1.9.1-0.20210817181203-db1a327a393e
- github.com/jinzhu/inflection v1.0.0
- github.com/jinzhu/now v1.1.5
- github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
- github.com/klauspost/compress v1.13.5
- github.com/klauspost/pgzip v1.2.5
- github.com/mattn/go-colorable v0.1.13
- github.com/mattn/go-isatty v0.0.17
- github.com/mattn/go-sqlite3 v1.14.16
- github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
- github.com/oligot/go-mod-upgrade v0.6.1
- github.com/pkg/errors v0.9.1
- github.com/pkg/profile v1.6.0
- github.com/pmezard/go-difflib v1.0.0
- github.com/russross/blackfriday/v2 v2.0.1
- github.com/shurcooL/sanitized_anchor_name v1.0.0
- github.com/spf13/cobra v1.2.1
- github.com/spf13/pflag v1.0.5
- github.com/stretchr/testify v1.8.1
- github.com/twitchtv/twirp v8.1.0+incompatible
- github.com/urfave/cli/v2 v2.3.0
- github.com/xo/dburl v0.13.0
- go.opencensus.io v0.23.0
- go.uber.org/atomic v1.7.0
- go.uber.org/multierr v1.7.0
- go.uber.org/zap v1.19.0
- golang.org/x/crypto v0.6.0
- golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4
- golang.org/x/net v0.6.0
- golang.org/x/sync v0.1.0
- golang.org/x/sys v0.5.0
- golang.org/x/term v0.5.0
- golang.org/x/text v0.7.0
- golang.org/x/tools v0.1.12
- google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83
- google.golang.org/grpc v1.41.0-dev.0.20210907181116-2f3355d2244e
- google.golang.org/protobuf v1.27.1
- gopkg.in/yaml.v3 v3.0.1
- gorm.io/driver/postgres v1.4.8
- gorm.io/driver/sqlite v1.4.4
- gorm.io/gorm v1.24.5
- mvdan.cc/gofumpt v0.2.0