Versions in this module Expand all Collapse all v1 v1.0.1 Mar 12, 2020 Changes in this version + func ExecContext(query string, args ...interface{}) (data sql.Result, err error) + func OnInit(s core.IService, opt ...Option) (err error) + func QueryContext(query string, args ...interface{}) (data *sql.Rows, err error) + type Option func(*Options) + func SetSqlUrl(v string) Option + func SetTimeOut(v time.Duration) Option + type Options struct + SqlUrl string + TimeOut time.Duration + type SqlServer struct + func (this *SqlServer) ExecContext(query string, args ...interface{}) (data sql.Result, err error) + func (this *SqlServer) GetContext(dest interface{}, query string, args ...interface{}) error + func (this *SqlServer) QueryContext(query string, args ...interface{}) (data *sql.Rows, err error) + func (this *SqlServer) QueryRowContext(query string, args ...interface{}) (data *sql.Row) + func (this *SqlServer) QueryxContext(query string, args ...interface{}) (data *sqlx.Rows, err error) + func (this *SqlServer) SelectContext(dest interface{}, query string, args ...interface{}) error