Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseConnector ¶
type DatabaseConnector interface {
Connection() *gorm.DB
Parse() DatabaseConnector
}
func FactoryDatabase ¶
func FactoryDatabase(typeDB string) (DatabaseConnector, error)
type DatabaseMysql ¶
func (*DatabaseMysql) Connection ¶
func (m *DatabaseMysql) Connection() *gorm.DB
func (*DatabaseMysql) Parse ¶
func (m *DatabaseMysql) Parse() DatabaseConnector
type DatabasePostgres ¶
type DatabasePostgres struct {
User string
Host string
Login string
Password string
DatabaseName string
SslMode string
}
func (*DatabasePostgres) Connection ¶
func (m *DatabasePostgres) Connection() *gorm.DB
func (*DatabasePostgres) Parse ¶
func (m *DatabasePostgres) Parse() DatabaseConnector
type SQLServer ¶
func (*SQLServer) Connection ¶
func (*SQLServer) Parse ¶
func (m *SQLServer) Parse() DatabaseConnector
Click to show internal directories.
Click to hide internal directories.