Versions in this module Expand all Collapse all v0 v0.1.0 Aug 16, 2022 Changes in this version + const KeyAction + const KeyApplication + const KeyController + const KeyDBDriver + const KeyFramework + const KeyRoute + func NewDriver(drv dialect.Driver, options ...Option) dialect.Driver + func NewDriverVersionTagger() driverVersionTagger + func NewStaticTagger(tags Tags) staticTagger + func Skip(ctx context.Context) context.Context + func WithTag(ctx context.Context, key, val string) context.Context + type CommentCarrier Tags + func NewCommentCarrier() CommentCarrier + func (c CommentCarrier) Get(key string) string + func (c CommentCarrier) Keys() []string + func (c CommentCarrier) Set(key string, value string) + type Driver struct + func (d *Driver) BeginTx(ctx context.Context, opts *sql.TxOptions) (dialect.Tx, error) + func (d *Driver) Exec(ctx context.Context, query string, args, v interface{}) error + func (d *Driver) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (d *Driver) Query(ctx context.Context, query string, args, v interface{}) error + func (d *Driver) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func (d *Driver) Tx(ctx context.Context) (dialect.Tx, error) + type OCTagger struct + func NewOCTagger() OCTagger + func (ot OCTagger) Tag(ctx context.Context) Tags + type OTELTagger struct + func NewOTELTagger() OTELTagger + func (ot OTELTagger) Tag(ctx context.Context) Tags + type Option func(*options) + func WithDriverVerTag() Option + func WithTagger(taggers ...Tagger) Option + func WithTags(tags Tags) Option + type Tagger interface + Tag func(context.Context) Tags + type Tags map[string]string + func FromContext(ctx context.Context) Tags + func (t Tags) Marshal() string + func (t Tags) Merge(tags ...Tags) Tags + type Tx struct + func (d *Tx) Commit() error + func (d *Tx) Exec(ctx context.Context, query string, args, v interface{}) error + func (d *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (d *Tx) Query(ctx context.Context, query string, args, v interface{}) error + func (d *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func (d *Tx) Rollback() error