{"modulePath":"github.com/openshift-hyperfleet/hyperfleet-api","version":"v0.4.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package db_context\n\nPackage db\\_context dbContext provides a wrapper around db context handling to allow access to the db context without requiring importing the db package, thus avoiding cyclic imports\n\n## Functions\n\n```go\nfunc Transaction(ctx context.Context) (tx *transaction.Transaction, ok bool)\n```\nTransaction extracts the transaction value from the context\n\n```go\nfunc WithTransaction(ctx context.Context, tx *transaction.Transaction) context.Context\n```\nWithTransaction adds the transaction to the context and returns a new context\n\n","path":"github.com/openshift-hyperfleet/hyperfleet-api/pkg/db/db_context","name":"db_context","synopsis":"Package db_context dbContext provides a wrapper around db context handling to allow access to the db context without requiring importing the db package, thus avoiding cyclic imports","isRedistributable":true}
