Documentation ¶
Index ¶
- type Client
- type Option
- func WithAttributes(attrs ...attribute.KeyValue) Option
- func WithConnMaxIdleTime(connMaxIdleTime time.Duration) Option
- func WithDBName(name string) Option
- func WithDNS(dsn map[string]string) Option
- func WithDefaultStringSize(defaultStringSize uint) Option
- func WithDisableDatetimePrecision(disableDatetimePrecision bool) Option
- func WithDontSupportRenameColumn(dontSupportRenameColumn bool) Option
- func WithDontSupportRenameIndex(dontSupportRenameIndex bool) Option
- func WithIgnoreRecordNotFoundError(ignoreRecordNotFoundError bool) Option
- func WithLogger(logger glog.ILogger) Option
- func WithMaxIdleCons(maxIdleCons int) Option
- func WithMaxOpenCons(maxOpenCons int) Option
- func WithQueryFormatter(queryFormatter func(query string) string) Option
- func WithSkipInitializeWithVersion(skipInitializeWithVersion bool) Option
- func WithSlowThreshold(slowThreshold time.Duration) Option
- func WithTracer(tracerServer *tracer.Server) Option
- func WithoutMetrics() Option
- func WithoutQueryVariables() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(p *config)
func WithAttributes ¶
WithAttributes configures attributes that are used to create a span.
func WithConnMaxIdleTime ¶
WithConnMaxIdleTime connMaxIdleTime
func WithDefaultStringSize ¶
WithDefaultStringSize defaultStringSize
func WithDisableDatetimePrecision ¶
WithDisableDatetimePrecision disableDatetimePrecision
func WithDontSupportRenameColumn ¶
WithDontSupportRenameColumn dontSupportRenameColumn
func WithDontSupportRenameIndex ¶
WithDontSupportRenameIndex dontSupportRenameIndex
func WithIgnoreRecordNotFoundError ¶
WithIgnoreRecordNotFoundError ignoreRecordNotFoundError
func WithQueryFormatter ¶
WithQueryFormatter configures a query formatter
func WithSkipInitializeWithVersion ¶
WithSkipInitializeWithVersion skipInitializeWithVersion
func WithSlowThreshold ¶
WithSlowThreshold slowThreshold
func WithTracer ¶
WithTracer tracerServer tracer.Server
func WithoutMetrics ¶
func WithoutMetrics() Option
WithoutMetrics prevents DBStats metrics from being reported.
func WithoutQueryVariables ¶
func WithoutQueryVariables() Option
WithoutQueryVariables configures the db.statement attribute to exclude query variables