Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
type DBClient struct {
// contains filtered or unexported fields
}
DBClient is the implementation of DBClientInterface.
type DBClientInterface ¶
type DBClientInterface interface {
ExecuteQuery(query model.DBQuery, args ...interface{}) ([]map[string]interface{}, error)
BeginTx() (*sql.Tx, error)
Close() error
}
DBClientInterface defines the interface for database operations.
func NewDBClient ¶
func NewDBClient(db *sql.DB) DBClientInterface
NewDBClient creates a new instance of DBClient with the provided database connection.
Click to show internal directories.
Click to hide internal directories.