factory

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFactory

type DefaultFactory struct {
	Host     string
	Port     int
	DBName   string
	Username string
	Password string
	Charset  string

	MaxConn     int
	MaxIdleConn int
	Log         logging.LogFunc
	// contains filtered or unexported fields
}

func (*DefaultFactory) CreateSession

func (f *DefaultFactory) CreateSession() session.SqlSession

func (*DefaultFactory) InitDB

func (f *DefaultFactory) InitDB() error

func (*DefaultFactory) LogFunc

func (f *DefaultFactory) LogFunc() logging.LogFunc

type Factory

type Factory interface {
	InitDB() error
	CreateSession() session.SqlSession
	LogFunc() logging.LogFunc
}

Jump to

Keyboard shortcuts

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