pgdriver

package
v1.0.0-beta.174 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func NewPostgresDriver

func NewPostgresDriver(ctx context.Context, url string, opts ...Option) (*Driver, error)

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) DB

func (d *Driver) DB() *sql.DB

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithMeterProvider

func WithMeterProvider(p metric.MeterProvider) Option

func WithTracerProvider

func WithTracerProvider(p trace.TracerProvider) Option

Jump to

Keyboard shortcuts

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