Discover Packages
github.com/tvitcom/czthree/pkg/dbcontext
package
module
Version:
v0.0.0-...-ded953e
Opens a new window with list of versions in this module.
Published: Dec 11, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package dbcontext provides DB transaction support for transactions tha span method calls of multiple
repositories and services.
DB represents a DB connection that can be used to run SQL queries.
New returns a new DB connection that wraps the given dbx.DB instance.
DB returns the dbx.DB wrapped by this object.
With returns a Builder that can be used to build and execute SQL queries.
With will return the transaction if it is found in the given context.
Otherwise it will return a DB connection associated with the context.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.