Documentation ¶
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) Create(query string, args ...interface{}) (int64, error)
- func (db *DB) Delete(query string, args ...interface{}) (int64, error)
- func (db *DB) Read(query string, args ...interface{}) (*sql.Row, error)
- func (db *DB) ReadAll(query string, args ...interface{}) (*sql.Rows, error)
- func (db *DB) Update(query string, args ...interface{}) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents the database connection.
func ConnectToDB ¶
NewDB creates a new DB instance with the provided MySQL connection details.
Click to show internal directories.
Click to hide internal directories.