Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginTx ¶
BeginTx begins a transaction from the DB stored in ctx, or errors if either there is no DB, or a transaction is already in progress.
func ContextWithExecutor ¶
ContextWithExecutor injects a ContextExecutor into a context.
func ExecutorFromContext ¶
func ExecutorFromContext(ctx context.Context) boil.ContextExecutor
ExecutorFromContext retrieves the ContextExecutor from a context. If there is none set, nil is returned - boil will panic if that happens, but since this is a programming error (a failure to set a ContextExecutor on a BackgroundContext), it is a reasonable tradeoff given the frequency with which ExecutorFromContext is used.
Types ¶
type DBInjector ¶
type DBInjector struct {
// contains filtered or unexported fields
}
DBInjector provides context injectors
func NewInjector ¶
func NewInjector(db *sql.DB) *DBInjector
func (*DBInjector) StreamServerInterceptor ¶
func (i *DBInjector) StreamServerInterceptor() grpc.StreamServerInterceptor
func (*DBInjector) UnaryServerInterceptor ¶
func (i *DBInjector) UnaryServerInterceptor() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.