Support string parameter for execution profiles

Description

The current signature for the execute() method supports an associative array of options in third place, for example:

One of the problems with this api is that the user needs to provide a "params" value in order to specify the options, for example:

With execution profiles, there shouldn't be a need to provide individual options (like consistency, timeout, retry policy, etc) on most cases, outside the execution profiles themselves.

We could support the following usages:

The only setting that is missing with this usage is the prepare flag, which can be solved by:
A- Use whatever is on the client options: {{ new Client({ queryOptions: { prepare } ) }} (defaults to false): new
B- Change default to undefined and, when its not set by the user, default to use query preparation when using execution profiles. This behaviour can be prevented when setting prepare to false on the client options.
C- Introduce a new setting at ExecutionProfil}}e level {{prepare and set it to true by default.

I think I would prefer to option C, a new setting at ExecutionProfile level with true default.

Environment

None

Pull Requests

None

Assignee

Unassigned

Reporter

Jorge Bay Gondra

Reviewer

None

Fix versions

None

Labels

None

Components

None

PM Priority

None

Pull Request

None

Priority

Major