Documentation ¶
Index ¶
- Constants
- func GetPort() string
- func LoadEnvVariables() (map[string]string, error)
- type Database
- func (db *Database) BeginTransaction() (*sql.Tx, error)
- func (db *Database) Close()
- func (db *Database) Execute(query string, args ...interface{}) (sql.Result, error)
- func (db *Database) GetConnection() *sql.DB
- func (db *Database) PrepareStatement(query string) (*sql.Stmt, error)
- func (db *Database) Query(query string, args ...interface{}) (*sql.Rows, error)
Constants ¶
View Source
const ( ENV_FILE_PATH = "./.env" PORT = "5211" )
Variables ¶
This section is empty.
Functions ¶
func LoadEnvVariables ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func GetInstance ¶
func (*Database) GetConnection ¶
func (*Database) PrepareStatement ¶
Click to show internal directories.
Click to hide internal directories.