Documentation
¶
Index ¶
- type Manager
- func (m *Manager) CloseAllConnections() error
- func (m *Manager) CloseConnection(name string) error
- func (m *Manager) Connect(name, driver, dsn string) (*gorm.DB, error)
- func (m *Manager) GetConnection(name string) (*gorm.DB, error)
- func (m *Manager) ListConnections() []string
- func (m *Manager) Ping(name string) error
- func (m *Manager) PingAll() map[string]error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages multiple database connections
func (*Manager) CloseAllConnections ¶
CloseAllConnections closes all database connections
func (*Manager) CloseConnection ¶
CloseConnection closes a database connection
func (*Manager) GetConnection ¶
GetConnection retrieves an existing database connection
func (*Manager) ListConnections ¶
ListConnections returns a list of all connection names
Click to show internal directories.
Click to hide internal directories.