db_interfaces

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConnector

type DBConnector interface {
	ConnectionName() string
}

type DBTableName

type DBTableName interface {
	TableName() string
}

type DatabaseConnection

type DatabaseConnection interface {
	Name() string
	DriverName() string
	Config() *db_config.DBConfig
	DB() *gorm.DB
	SqlDB() (*sql.DB, error)
	MigrateDriver() (database.Driver, error)
}

type DatabaseDriver

type DatabaseDriver interface {
	Name() string
	Config() *db_config.DBConfig
	Connect(dbConfig db_config.DBConfig) error
	DB() *gorm.DB
	SqlDB() (*sql.DB, error)
	MigrateDriver() (database.Driver, error)
	Clone() DatabaseDriver
}

DatabaseDriver interface

Jump to

Keyboard shortcuts

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