Documentation ¶
Index ¶
- Constants
- func GetVals(data interface{}, fieldNames []string) (values []interface{}, err error)
- type DB
- func (me *DB) Exec(query string, secured bool, prm ...interface{}) (result sql.Result, err error)
- func (me *DB) Init(driver string, dsn string, maxConn int, maxRetry int) error
- func (me *DB) OpenRecordset(query string, secured bool, prm ...interface{}) (result *sql.Rows, err error)
- func (me *DB) SecureString(s string) string
- type DBext
- func (me *DBext) Call(id uint64, name string, params ...interface{}) (_ interface{}, code int, err error)
- func (me *DBext) CallWithoutSecuring(id uint64, name string, params ...interface{}) (_ interface{}, code int, err error)
- func (me *DBext) DB() *DB
- func (me *DBext) Exec(name string, params ...interface{}) (sql.Result, error)
- func (me *DBext) ExecWithoutSecuring(name string, params ...interface{}) (sql.Result, error)
- func (me *DBext) OpenRecordset(name string, params ...interface{}) (*sql.Rows, error)
- func (me *DBext) OpenRecordsetExtended(name string, offset uint, count uint, params ...interface{}) (*sql.Rows, error)
- func (me *DBext) OpenRecordsetWithoutSecuring(name string, params ...interface{}) (*sql.Rows, error)
- func (me *DBext) OpenRecordsetWithoutSecuringExtended(name string, offset uint, count uint, params ...interface{}) (*sql.Rows, error)
- func (me *DBext) Select(id uint64, rowPattern interface{}, name string, cacheName string, offset uint, ...) (result []interface{}, code int, err error)
- type NullBool
- type NullFloat64
- type NullInt64
- type NullString
- type NullTime
Constants ¶
View Source
const ( // MYSQL -- MYSQL = "mysql" // PGSQL -- PGSQL = "pgsql" // MSSQL -- MSSQL = "mssql" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB --
type DBext ¶
type DBext struct {
// contains filtered or unexported fields
}
DBext --
func (*DBext) Call ¶
func (me *DBext) Call(id uint64, name string, params ...interface{}) (_ interface{}, code int, err error)
Call -- execute stored procedure
func (*DBext) CallWithoutSecuring ¶
func (me *DBext) CallWithoutSecuring(id uint64, name string, params ...interface{}) (_ interface{}, code int, err error)
CallWithoutSecuring -- execute stored procedure
func (*DBext) ExecWithoutSecuring ¶
ExecWithoutSecuring --
func (*DBext) OpenRecordset ¶
OpenRecordset -- fetching data
func (*DBext) OpenRecordsetExtended ¶
func (me *DBext) OpenRecordsetExtended(name string, offset uint, count uint, params ...interface{}) (*sql.Rows, error)
OpenRecordsetExtended -- fetching data with providing a start position and max count
func (*DBext) OpenRecordsetWithoutSecuring ¶
func (me *DBext) OpenRecordsetWithoutSecuring(name string, params ...interface{}) (*sql.Rows, error)
OpenRecordsetWithoutSecuring -- fetching data without special symbols escaping
func (*DBext) OpenRecordsetWithoutSecuringExtended ¶
func (me *DBext) OpenRecordsetWithoutSecuringExtended(name string, offset uint, count uint, params ...interface{}) (*sql.Rows, error)
OpenRecordsetWithoutSecuringExtended -- fetching data with providing a start position, max count and without special symbols escaping
type NullFloat64 ¶
type NullFloat64 sql.NullFloat64
NullFloat64 --
func (NullFloat64) MarshalJSON ¶
func (v NullFloat64) MarshalJSON() ([]byte, error)
MarshalJSON for NullFloat64
func (*NullFloat64) Scan ¶
func (v *NullFloat64) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullString ¶
type NullString sql.NullString
NullString --
func (NullString) MarshalJSON ¶
func (v NullString) MarshalJSON() ([]byte, error)
MarshalJSON for NullString
func (*NullString) Scan ¶
func (v *NullString) Scan(value interface{}) error
Scan implements the Scanner interface.
Click to show internal directories.
Click to hide internal directories.