db

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	DB *sql.DB
}

func (*Pool) Get

func (p *Pool) Get() *sql.DB

func (*Pool) Init

func (p *Pool) Init()

type PostgresPool

type PostgresPool struct {
	Pool
}

func (*PostgresPool) Init

func (p *PostgresPool) Init()

type Worker

type Worker interface {
	Init()
	Get() *sql.DB
}

Jump to

Keyboard shortcuts

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