# Writers

The Data Science Lab module provides a ***Writers*** tab inside the Notebook to write the output of the data science experiments.

{% hint style="success" %}
*Check out the illustration on how to use the Writers operation inside a DS Notebook.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2Fb3gnjZ7iug6NFo3B75M3%2Fwriters%20inside%20Notebook.mp4?alt=media&token=1727d2f5-45f9-4b61-8e48-ae75053eaf28>" %}
***Writers inside a DS Notebook***
{% endembed %}

* Navigate to a code cell with dataset details.
* Run the cell.&#x20;
* The preview of the dataset appears below.

<figure><img src="/files/0knLO8DoTCGkJG58pV1E" alt=""><figcaption></figcaption></figure>

* Click the ***Secrets*** tab to get the registered DB secrets.
* Select the registered DB secret keys from the ***Secrets*** tab.
* Add a new code cell.&#x20;
* Get the Secret keys of the DB using the checkboxes provided for the listed Secret keys.&#x20;

<figure><img src="/files/QRJhtI01bfkQLiRougXP" alt=""><figcaption></figcaption></figure>

* Add a new code cell.
* Open the Writers section.
* Use the given checkbox to select a driver type for the writers.
* The code gets added to the newly added cell.

<figure><img src="/files/gnZP4aGynaewdlpooNKY" alt=""><figcaption></figcaption></figure>

* Provide the Secret values for the required information of the writer such as  Username, Password, Host, Port, Database name, table name, and DataFrame.
* Run the code cell with the modified database details.
* A message below states that the DataFrame has been written to the database. The data gets written to the specified database.

<figure><img src="/files/NCM35JZklHW9VkArreSK" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>* *The supported DB writers are **MYSQL**, **MSSQL**, **Oracle**, **MongoDB,*** ***PostgreSQL**, and **ClickHouse**.*
{% endhint %}


---

# 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.bdb.ai/data-science-lab-5/notebook-operations/writers.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.
