Documentation ¶
Index ¶
- Constants
- func QueryBuilderInitialize(scriptPath string) error
- type BindEntry
- type DataError
- type DatabaseError
- type Entry
- type Mariadb
- func (conn *Mariadb) Connect() error
- func (conn *Mariadb) Disconnect() error
- func (conn *Mariadb) Exec(statement *Statement) error
- func (conn *Mariadb) ExecBulk(statement *Statement) error
- func (conn *Mariadb) Query(statement *Statement) ([]map[string]interface{}, error)
- func (conn *Mariadb) QueryRow(statement *Statement) (map[string]interface{}, error)
- func (conn *Mariadb) QueryRowWithParam(statement *Statement) (map[string]interface{}, error)
- func (conn *Mariadb) QueryWithParam(statement *Statement) ([]map[string]interface{}, error)
- func (conn *Mariadb) Select(statement *Statement) ([]map[string]interface{}, error)
- type MariadbConfig
- type QueryBuilder
- type QueryError
- type QueryExecute
- type Statement
Constants ¶
View Source
const (
INVALID_FILE_TYPE = "invalid file type"
)
Variables ¶
This section is empty.
Functions ¶
func QueryBuilderInitialize ¶
Types ¶
type DatabaseError ¶
type DatabaseError struct {
Message string
}
func (DatabaseError) Error ¶
func (e DatabaseError) Error() string
type Mariadb ¶
type Mariadb struct { Config MariadbConfig DB *sqlx.DB }
Mariadb
func (*Mariadb) Disconnect ¶
func (*Mariadb) QueryRowWithParam ¶
func (*Mariadb) QueryWithParam ¶
type MariadbConfig ¶
type QueryBuilder ¶
func GetQueryBuilder ¶
func GetQueryBuilder() *QueryBuilder
func (*QueryBuilder) GetStatement ¶
func (qb *QueryBuilder) GetStatement(name string) *Statement
func (*QueryBuilder) Load ¶
func (qb *QueryBuilder) Load() error
type QueryError ¶
func (*QueryError) Error ¶
func (e *QueryError) Error() string
type QueryExecute ¶
type QueryExecute interface { Connect() Query() }
Click to show internal directories.
Click to hide internal directories.