# Streaming from databases

For streaming data from databases, you need to read data in your pipeline with the "[Query](https://docs.ylem.co/pipelines/tasks-ip/query)" task:

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2F7Hbbg19M2YxyU6KBShyE%2FScreenshot%202024-04-29%20at%2020.21.36.png?alt=media&#x26;token=90e886f0-5b81-4e16-9e94-ace22f116de7" alt=""><figcaption></figcaption></figure>

When the pipeline is triggered, this task will make an SQL query to the database, you have configured in your integration and use the response data for the entire pipeline.

We support a wide range of SQL integrations to read from and write data to. You can find more information on how to configure such integrations on their specific pages:

* [PostgreSQL](https://docs.ylem.co/integrations/library-of-integrations/postgresql)
* [Snowflake](https://docs.ylem.co/integrations/library-of-integrations/snowflake)
* [MySQL](https://docs.ylem.co/integrations/library-of-integrations/mysql)
* [AWS RDS](https://docs.ylem.co/integrations/library-of-integrations/aws-rds)
* [Google Big Query](https://docs.ylem.co/integrations/library-of-integrations/google-big-query)
* [Google Cloud SQL](https://docs.ylem.co/integrations/library-of-integrations/google-cloud-sql)
* [ClickHouse](https://docs.ylem.co/integrations/library-of-integrations/clickhouse)
* [Immuta](https://docs.ylem.co/integrations/library-of-integrations/immuta)
* [ElasticSearch](https://docs.ylem.co/integrations/library-of-integrations/elasticsearch)
* [PlanetScale](https://docs.ylem.co/integrations/library-of-integrations/planetscale)

&#x20;Some examples of the streaming pipelines from the API:

## Streaming from database to API

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2F4Y9xnnbMv1TcH9Sil7CH%2FScreenshot%202024-05-09%20at%2020.42.09.png?alt=media&#x26;token=ba37b404-90db-4b88-9523-4177480a187d" alt=""><figcaption></figcaption></figure>

## Streaming from database to database

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FWqLnKZkThsSkKf94urgY%2FScreenshot%202024-05-09%20at%2020.39.49.png?alt=media&#x26;token=baa8949e-4d92-4b29-8a0e-69c54ef72534" alt=""><figcaption></figcaption></figure>

Same as in the case of [streaming from APIs](https://docs.ylem.co/use-cases/functional-use-cases/streaming-from-apis), the pipelines above are just examples and your real pipelines will most probably be more complicated and will contain more transformation and processing of data:

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2FsNslxG9ccARje9AwH1Qf%2FScreenshot%202024-05-09%20at%2020.39.04.png?alt=media&#x26;token=94be85ad-4a13-44e0-b523-766a6fc35183" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.ylem.co/use-cases/functional-use-cases/streaming-from-databases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
