sqlserver

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSQL

func LoadSQL(tag string, lo logger.Logger, config database.SQLConfig) database.SQL

func NewSQL

func NewSQL(lo logger.Logger, config database.SQLConfig) database.SQL

always create new database object

Types

type SQL

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

func (*SQL) Close

func (c *SQL) Close() error

func (*SQL) MySQL

func (c *SQL) MySQL() (err error)

func (*SQL) Orm

func (c *SQL) Orm() *gorm.DB

func (*SQL) SQLServer

func (c *SQL) SQLServer() (err error)

type Stores

type Stores struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Stores

func (*Stores) LoadClient

func (c *Stores) LoadClient(id string) (client *SQL, ok bool)

func (*Stores) LoadClientByTag

func (c *Stores) LoadClientByTag(ta string) (client *SQL, ok bool)

func (*Stores) StoreClient

func (c *Stores) StoreClient(client *SQL)

Jump to

Keyboard shortcuts

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