relation

package
v0.0.0-...-eecab09 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSQL

func InitSQL(sqlType string, dsn string, poolMax int, connAttempts int, connTimeout time.Duration) (pwsql.ISQLGorm, error)

Types

type MockSQL

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

func NewMock

func NewMock(mockdb *sql.DB) *MockSQL

func (*MockSQL) Close

func (m *MockSQL) Close() error

func (*MockSQL) GetDB

func (m *MockSQL) GetDB() *gorm.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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