postgres

package
v0.0.0-...-7ceaf83 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config - config

type PingConnectionError

type PingConnectionError struct {
	Err error
}

PingConnectionError - error ping connection

func (*PingConnectionError) Error

func (e *PingConnectionError) Error() string

type Store

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

Store implementation of db interface

func New

func New(tracer trace.TracerProvider, metrics *metric.MeterProvider) *Store

New return new instance of Store

func (*Store) GetConn

func (s *Store) GetConn() any

GetConn - get connect

func (*Store) Init

func (s *Store) Init(ctx context.Context) error

Init - initialize

type Tracer

type Tracer struct {
	trace.TracerProvider
}

func (*Tracer) TraceQueryEnd

func (t *Tracer) TraceQueryEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryEndData)

func (*Tracer) TraceQueryStart

func (t *Tracer) TraceQueryStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryStartData) context.Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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