Skip to content

splunksql: Add splunksql.OpenDB function #106

Open
@pellared

Description

@pellared

Add splunksql.OpenDB function for ones who dislike the sql.Open and splunksql.Open which use global state.

Something similar to https://pkg.go.dev/github.com/XSAM/otelsql#OpenDB

Desired API: func OpenDB(c driver.Connector, cfg InstrumentationConfig) *sql.DB.
We should also add OpenDB functions to all other sql-based instrumentation libraries that will use splunksql.OpenDB.

Implementation guidelines: #88 (comment)

Originally posted by @pellared in #88 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions