> ## Documentation Index
> Fetch the complete documentation index at: https://help.csvbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# PostgreSQL

> Import CSV files and Excel sheets directly into your PostgreSQL tables.

Import CSV files and Excel sheets directly into your PostgreSQL tables.

<Steps>
  <Step title="Select PostgreSQL as the destination">
    Select **PostgreSQL** as the destination type.
  </Step>

  <Step title="Connect your database">
    Connect your PostgreSQL database by providing the credentials.
  </Step>

  <Step title="Set the target table">
    Specify the table name where you want the data to be pushed.

    <Frame>
      <img src="https://mintcdn.com/csvbox-io/Fn747PbJ5U7GCAW2/images/postgresql-settings.jpg?fit=max&auto=format&n=Fn747PbJ5U7GCAW2&q=85&s=d745e71e8b03050cf5ad3022e044df82" alt="PostgreSQL data destination settings" width="692" height="1363" data-path="images/postgresql-settings.jpg" />
    </Frame>
  </Step>

  <Step title="Map columns">
    Map the sheet columns to the table columns. You can also map custom attributes to table columns.

    <Frame>
      <img src="https://mintcdn.com/csvbox-io/Fn747PbJ5U7GCAW2/images/map-columns.jpg?fit=max&auto=format&n=Fn747PbJ5U7GCAW2&q=85&s=917cba5ac57c4c647f9eae4f6fba9649" alt="Map sheet columns to table columns" width="519" height="880" data-path="images/map-columns.jpg" />
    </Frame>
  </Step>
</Steps>

Your users' CSV data is then appended directly to the PostgreSQL table.

<Note>
  Boolean columns that use [Display as checkbox](/dashboard-settings/validations#display-as-checkbox) are pushed as `true` or `false`, which PostgreSQL accepts for boolean columns.
</Note>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.