connector

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package connector opens and supervises the SQL connection pool and its GORM handle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

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

func New

func New(cfg pconfig.Config) (*Connector, *gorm.DB, error)

func (*Connector) DB

func (c *Connector) DB() *sql.DB

func (*Connector) Start

func (c *Connector) Start(ctx context.Context, l logger.Logger, cfg pconfig.Config) error

func (*Connector) Stop

func (c *Connector) Stop(l logger.Logger) error

Jump to

Keyboard shortcuts

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