> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/cassandradb/executequery.md).

# ExecuteQuery

Task version: 1.0.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.CassandraDB>

## Task Parameters

{% tabs %}
{% tab title="Input" %}

| Name                                            | Description                                                                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AuthenticationMethods : `AuthenticationMethods` | <p>Authentication method.</p><p>Possible values:</p><ul><li><code>None</code>: Authentication method.</li><li><code>PlainTextAuthProvider</code>: Authentication method.</li><li><code>DsePlainTextAuthProvider</code>: Authentication method.</li></ul><p><br>Default: <code>1</code><br>Example: <code>AuthenticationMethods.PlainTextAuthProvider</code></p> |
| UseSsl : `Boolean`                              | <p>Use Ssl.</p><p><br>Default: <code>False</code><br>Example: <code>false</code></p>                                                                                                                                                                                                                                                                            |
| X509CertificateFilePath : `String`              | <p>X509 certificate location.</p><p><br>Default: <code>-</code><br>Example: <code>c:\temp</code></p>                                                                                                                                                                                                                                                            |
| 🗝X509CertificatePassword : `String`            | <p>X509 certificate's password.</p><p><br>Default: <code>-</code><br>Example: <code>FooBar</code></p>                                                                                                                                                                                                                                                           |
| Username : `String`                             | <p>Username.</p><p><br>Default: <code>-</code><br>Example: <code>Foo</code></p>                                                                                                                                                                                                                                                                                 |
| Password : `String`                             | <p>Password.</p><p><br>Default: <code>-</code><br>Example: <code>Bar</code></p>                                                                                                                                                                                                                                                                                 |
| AsUser : `String`                               | <p>Connect with 'Input.Username' credentials, but will act as 'Input.AsUser'.</p><p><br>Default: <code>-</code><br>Example: <code>Foo2</code></p>                                                                                                                                                                                                               |
| ContactPoints : `ContactPoint[]`                | <p>Contact point(s).</p><p><br>Default: <code>-</code><br>Example: <code>Object{127.0.0.1}</code></p>                                                                                                                                                                                                                                                           |
| Port : `Int32`                                  | <p>Port.</p><p><br>Default: <code>9042</code><br>Example: <code>9042</code></p>                                                                                                                                                                                                                                                                                 |
| Keyspace : `String`                             | <p>Keyspace (Case-sensitive).</p><p><br>Default: <code>-</code><br>Example: <code>foo</code></p>                                                                                                                                                                                                                                                                |
| Query : `String`                                | <p>Query to execute.</p><p><br>Default: <code>-</code><br>Example: <code>SELECT bar FROM foo</code></p>                                                                                                                                                                                                                                                         |
| {% endtab %}                                    |                                                                                                                                                                                                                                                                                                                                                                 |
| {% endtabs %}                                   |                                                                                                                                                                                                                                                                                                                                                                 |

## Task Result

| Name                      | Description                                                                                                                                                                                                                         |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean`       | <p>True if query ran successfully.<br>Example: <code>true</code></p>                                                                                                                                                                |
| QueryResults : `JToken`   | <p>Query results. Only SELECT query contain values.<br>Example: <code>JToken</code></p>                                                                                                                                             |
| Warnings : `List<String>` | <p>Returns the server-side warnings for this query. This feature is only available for Cassandra 2.2 or above; with lower versions, this property always returns null.<br>Example: <code>List { "warning1", "warning2" }</code></p> |

## Task Changelog

Changelog for Task Frends.CassandraDB.ExecuteQuery.

## Changelog

### \[1.0.0] - 2023-10-30

#### Added

* Initial implementation


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.frends.com/tasks/tasks/cassandradb/executequery.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
