# Timeplus

Executes a query on Timeplus Enterprise and creates a message from each row received

This input can execute a query on Timeplus Enterprise Cloud, Timeplus Enterprise (self-hosted) or Timeplusd. A structured message will be created from each row received.

If it is a streaming query, this input will keep running until the query is terminated. If it is a table query, this input will shut down once the rows from the query are exhausted.

***

## Configuration

| Name      | Type   | Optional | Secret | Description                                                                                    |
| --------- | ------ | -------- | ------ | ---------------------------------------------------------------------------------------------- |
| query     | string | no       | no     | The query to run                                                                               |
| url       | string | yes      | no     | The url should always include schema and host. The value defaults to `"tcp://localhost:8463"`. |
| workspace | string | no       | no     | ID of the workspace. Required when reads from Timeplus Enterprise.                             |
| apikey    | string | no       | yes    | The API key. Required when reads from Timeplus Enterprise Cloud                                |
| username  | string | no       | no     | The username. Required when reads from Timeplus Enterprise (self-hosted) or Timeplusd          |
| password  | string | no       | yes    | The password. Required when reads from Timeplus Enterprise (self-hosted) or Timeplusd          |
