Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDBNotDefined ... ErrDBNotDefined = errors.New("Database connection is not defined yet") )
Functions ¶
func ConnectionString ¶
ConnectionString - Create a connection string
func ConnectionURL ¶
ConnectionURL - Create a connection URL
Types ¶
type Database ¶
type Database interface { GetDB() *sqlx.DB Select(dest interface{}, query string, args ...interface{}) error // Get(dest interface{}, query string, args ...interface{}) error Exec(query string, args ...interface{}) (sql.Result, error) Query(query string, args ...interface{}) (*sqlx.Rows, error) QueryRow(query string, args ...interface{}) *sqlx.Row // QueryBind(argCount, rowCount int) string // Rebind(query string) string Close() error }
Database is the External Database definition
Click to show internal directories.
Click to hide internal directories.