Skip to content

method .query() requires the parameter @values to be a Positional #2

@frithnanth

Description

@frithnanth

Presently when I need just one parameter I have to call method query this way:

$client.query($sql, [42]);

because the method is defined as

method query(Str $query, @values? --> Promise) 

If it were defined as

method query(Str $query, *@values --> Promise) 

I could use both a scalar or a Positional (or no parameter at all).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions