db

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionFactory

type ConnectionFactory interface {
	NewConnection() wrapper.UnitOfWork

	NewConnectionWithTransaction() (wrapper.UnitOfWork, error)

	Delegate() interface{}

	Close() error
}

func NewConnectionFactory added in v1.5.5

func NewConnectionFactory(delegate *sqlx.DB) (ConnectionFactory, error)

func NewPostgresConnectionFactory

func NewPostgresConnectionFactory(ds string, poolMin, poolMax int) (ConnectionFactory, error)

Jump to

Keyboard shortcuts

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