Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GlobalDateFormat = "2006-01-02 15:04:05"
)
Functions ¶
Types ¶
type ExecTypeEnum ¶
type ExecTypeEnum int
const ( ExecQuery ExecTypeEnum = 0 //ExecQuerySingle = 1 ExecNonScalar = 2 )
type QueryResult ¶
type QueryResult struct {
DateFormat string
// contains filtered or unexported fields
}
func Exec ¶
func Exec(db *sql.DB, execType ExecTypeEnum, sql string, args ...interface{}) *QueryResult
func (*QueryResult) CUDAResult ¶
func (q *QueryResult) CUDAResult() sql.Result
func (*QueryResult) Close ¶
func (q *QueryResult) Close()
func (*QueryResult) Error ¶
func (q *QueryResult) Error() error
func (*QueryResult) Fetch ¶
func (q *QueryResult) Fetch(objs interface{}, n int) error
Click to show internal directories.
Click to hide internal directories.