func (q QueryFunction) Cmd() string {
	argIndexes := make([]string, len(q.arguments))
	for i := range argIndexes {
		argIndexes[i] = fmt.Sprintf("$%d", i+1)
	}
	return fmt.Sprintf("SELECT %s FROM %s(%s)", strings.Join(q.cols, ", "), q.name, strings.Join(argIndexes, ", "))
}
// Cmd returns a SQL string to execute the function with arguments.
Cmd returns a SQL string to execute the function with arguments.
// Cmd returns a SQL string to execute the function with arguments .
func (q QueryFunction) Cmd() string {
	argIndexes := make([]string, len(q.arguments))
	for i := range argIndexes {
		argIndexes[i] = fmt.Sprintf("$%d", i+1)
	}
	return fmt.Sprintf("SELECT %s FROM %s(%s)", strings.Join(q.cols, ", "), q.name, strings.Join(argIndexes, ", "))
}
func ( q QueryFunction ) Cmd ( ) string { argIndexes := make ( [ ] string , len ( q . arguments ) ) for i := range argIndexes { argIndexes [ i ] = fmt . Sprintf ( " " , i + 1 ) } return fmt . Sprintf ( " " , strings . Join ( q . cols , " " ) , q . name , strings . Join ( argIndexes , " " ) ) }
Cmd returns a SQL string to execute the function with arguments.
Cmd returns a SQL string to execute the function with arguments .