driver

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 4 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 interface {
	CreateConnection(dsn string) (*sqlx.DB, error)
	IsDupEntryError(error) bool
	IsDupDatabaseError(error) bool
}

type PGXDriver

type PGXDriver struct{}

func (*PGXDriver) CreateConnection

func (p *PGXDriver) CreateConnection(dsn string) (*sqlx.DB, error)

func (*PGXDriver) IsDupDatabaseError

func (p *PGXDriver) IsDupDatabaseError(err error) bool

func (*PGXDriver) IsDupEntryError

func (p *PGXDriver) IsDupEntryError(err error) bool

type PQDriver

type PQDriver struct{}

func (*PQDriver) CreateConnection

func (p *PQDriver) CreateConnection(dsn string) (*sqlx.DB, error)

func (*PQDriver) IsDupDatabaseError

func (p *PQDriver) IsDupDatabaseError(err error) bool

func (*PQDriver) IsDupEntryError

func (p *PQDriver) IsDupEntryError(err error) bool

Jump to

Keyboard shortcuts

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