// QueryName sets the query name.
423643
func (q *MatchAllQuery) QueryName(name string) *MatchAllQuery {
	q.queryName = name
	return q
}
1334710
func (s *QueryInput) SetTableName(v string) *QueryInput {
	s.TableName = &v
	return s
}
765233
func (c *UnitStateListCall) UnitName(unitName string) *UnitStateListCall {
	c.urlParams_.Set("unitName", unitName)
	return c
}
152286
func (scope *Scope) TableName() string {
	if scope.Search != nil && len(scope.Search.tableName) > 0 {
		return scope.Search.tableName
	}

	if tabler, ok := scope.Value.(tabler); ok {
		return tabler.TableName()
	}

	if tabler, ok := scope.Value.(dbTabler); ok {
		return tabler.TableName(scope.db)
	}

	return scope.GetModelStruct().TableName(scope.db.Model(scope.Value))
}
648674
func (s *UserMatch) UserName(username string) *UserMatch {
	s.username = username
	return s
}
1157938
func (session *Session) queryStr(sqlStr string, paramStr ...interface{}) (result []map[string]string, err error) {
	rows, err := session.queryRows(sqlStr, paramStr...)
	if err != nil {
		return nil, err
	}
	result, err = rows2Strings(rows)
	rows.Close()
	return
}
483623
func Query(q *gocql.Query, names []string) *Queryx {
	return &Queryx{
		Query:  q,
		Names:  names,
		Mapper: DefaultMapper,
	}
}
30870
func (bC *BaseController) QueryInt(r *http.Request, param string) (int, error) {
	if vals := r.URL.Query()[param]; len(vals) > 0 {
		return strconv.Atoi(vals[0])
	}
	return 0, errors.New("Not found")
}
178454
func (q *SimpleQueryStringQuery) QueryName(queryName string) *SimpleQueryStringQuery {
	q.queryName = queryName
	return q
}
706375
func (q *RegexpQuery) QueryName(queryName string) *RegexpQuery {
	q.queryName = queryName
	return q
}
212771
func (engine *Engine) QueryString(sqlorArgs ...interface{}) ([]map[string]string, error) {
	session := engine.NewSession()
	defer session.Close()
	return session.QueryString(sqlorArgs...)
}
1252265
func (db *DB) Queryx(query string, args ...interface{}) (*Rows, error) {
	r, err := db.DB.Query(query, args...)
	if err != nil {
		return nil, err
	}
	return &Rows{Rows: r, unsafe: db.unsafe, Mapper: db.Mapper}, err
}
1272060
func (c *Conn) QueryRow(sql string, args ...interface{}) *Row {
	rows, _ := c.Query(sql, args...)
	return (*Row)(rows)
}
660581
func (c *Context) QueryMap(key string) map[string]string {
	dicts, _ := c.GetQueryMap(key)
	return dicts
}
1106577
func (q *QueryDsl) Term(name, value string) *QueryDsl {
	if len(q.Terms) == 0 {
		q.Terms = make(map[string]string)
	}
	q.Terms[name] = value
	return q
}
260162
func (r *Request) QueryParameter(name string) string {
	return r.Request.FormValue(name)
}
1274717
func (q *TermsQuery) QueryName(queryName string) *TermsQuery {
	q.queryName = queryName
	return q
}