Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.9% on proxy.golang.org
Top 1.3% dependent packages on proxy.golang.org
Top 1.6% dependent repos on proxy.golang.org
Top 1.6% docker downloads on proxy.golang.org

proxy.golang.org : github.com/hashicorp/go-dbw

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 - Source - Documentation - JSON
purl: pkg:golang/github.com/hashicorp/go-dbw
License: MPL-2.0
Latest release: 7 months ago
First release: over 1 year ago
Namespace: github.com/hashicorp
Dependent packages: 12
Dependent repositories: 11
Stars: 6 on GitHub
Forks: 1 on GitHub
Docker dependents: 8
Docker downloads: 393
See more repository details: repos.ecosyste.ms
Last synced: 14 days ago

    Loading...
    Readme
    Loading...