sql

package
v0.0.0-...-2487f57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDatabase

func WithDatabase(database string) sqlOptFunc

Configure SQL database

func WithDbSystem

func WithDbSystem(dbSystem string) sqlOptFunc

Configure DB system

func WithPort

func WithPort(port int) sqlOptFunc

Configure SQL port

func WithServer

func WithServer(server string) sqlOptFunc

Configure SQL server

func WithTable

func WithTable(table string) sqlOptFunc

Configure SQL table

func WithUsername

func WithUsername(username string) sqlOptFunc

Configure SQL username

Types

type SqlEnricher

type SqlEnricher struct {
	Opts *sqlOpts
}

func NewSqlEnricher

func NewSqlEnricher(
	optFuncs ...sqlOptFunc,
) *SqlEnricher

Create a SQL database instance

func (*SqlEnricher) CreateSpan

func (e *SqlEnricher) CreateSpan(
	ctx context.Context,
	operation string,
	statement string,
) (
	context.Context,
	trace.Span,
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL