> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-pipeline-5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-pipeline-5/getting-started/homepage/create/creating-a-new-job/spark-job/writers/db-writer.md).

# DB Writer

This task is used to write data in the following databases: ***MYSQL, MSSQL, Oracle, ClickHouse, Snowflake, PostgreSQL, Redshift***.

## Configuring the Meta Information tab fields <a href="#configuring-the-over-all-meta-information-tab-fields" id="configuring-the-over-all-meta-information-tab-fields"></a>

Drag the DB writer task to the Workspace and click on it to open the related configuration tabs for the same. The ***Meta Information*** tab opens by default.

* **Host IP Address:** Enter the Host IP Address for the selected driver.
* **Port:** Enter the port for the given IP Address.
* **Database name:** Enter the Database name.
* **Table name:** Provide a single or multiple table names. If multiple table name has be given, then enter the table names separated by comma(,)**.**
* **User name:** Enter the user name for the provided database.
* **Password:** Enter the password for the provided database.
* **Driver:** Select the driver from the drop down. There are 6 drivers supported here: ***MYSQL, MSSQL, Oracle, ClickHouse, Snowflake, PostgreSQL, Redshift***.
* **Schema File Name:** Upload spark schema file in JSON format.
* **Save Mode:** Select the Save mode from the drop down.
  * Append
  * Overwrite
* **Query:** Write the create table(DDL) query.

<figure><img src="/files/Kw78YoHgrc20maTf7Jh9" alt=""><figcaption><p>DB <em><strong>Writer Task</strong></em></p></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> Please click the **Save Task In Storage** icon to save the configuration for the dragged writer task.*
{% endhint %}


---

# 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.bdb.ai/data-pipeline-5/getting-started/homepage/create/creating-a-new-job/spark-job/writers/db-writer.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.
