sqlserver

package
v1.0.402 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 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

Types

type SQL

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

func (*SQL) Close

func (c *SQL) Close() error

func (*SQL) Config added in v0.0.2

func (c *SQL) Config() database.SQLConfig

func (*SQL) Id added in v1.0.3

func (c *SQL) Id() string

func (*SQL) MySQL

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

func (*SQL) OnError added in v0.0.2

func (c *SQL) OnError(e error) (err error)

func (*SQL) Orm

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

func (*SQL) PostgresSQL added in v0.0.8

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

func (*SQL) SQLite added in v0.0.2

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

func (*SQL) Start added in v0.0.2

func (c *SQL) Start() 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