---
title: "Quickstart Guide"
description: "Getting started with Drizzle ORM allows you to interact with your database using simple, readable commands. This guide helps you set up your database connection and perform basic operations so you ..."
last_updated: "2026-07-02T09:37:14.181776+00:00"
canonical_url: "https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/guide/getting-started/quickstart-guide"
---

Getting started with Drizzle ORM allows you to interact with your database using simple, readable commands. This guide helps you set up your database connection and perform basic operations so you can focus on building your application rather than writing complex manual queries.

## Setting up your connection

To begin, you must establish a connection to your database. This acts as the bridge between your application and your data storage.

1. **Initialize your database client:** Provide the necessary credentials to the connection handler so the software knows where your data resides.
2. **Define your tables:** Map your database tables to objects within your application. This allows the system to understand the structure of your data.
3. **Execute operations:** Use the connection object to run commands such as retrieving, adding, or modifying records.

> [!NOTE]
> Ensure your database credentials are stored securely and are not exposed in plain text within your user-facing interfaces.

## Key Concepts

*   **Database Client:** A tool that manages the connection between your application and the database.
*   **Table Mapping:** Defining the structure of your data so the software can treat database rows as standard objects.
*   **Operations:** The actions you perform on your data, such as finding specific records or saving new information.

## Workflow Overview

The following diagram illustrates how your application interacts with the database through Drizzle:

```mermaid
graph LR
    A[User Code] --> B(Database Client)
    B --> C{Database}
    C --> B
    B --> A
```

## Common Commands

The following table summarizes the primary operations you will use frequently:

| Operation | Description |
| :--- | :--- |
| Select | Retrieve data from one or more tables |
| Insert | Add new rows of data |
| Update | Modify existing information |
| Delete | Remove records from your database |

> [!TIP]
> Use the logger feature during development to inspect the queries being generated. This is helpful for troubleshooting performance or identifying why a specific result was returned.

> [!WARNING]
> Always validate input data before performing operations to protect your database from accidental data loss or corrupted records.

> [!IMPORTANT]
> If you encounter issues during setup, verify that your database credentials are correct and that the network connection to your database provider is active.

## Related

- [Installation and Setup](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/guide/getting-started/installation-and-setup)
- [Querying and Mutating Data](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/guide/core-features/querying-and-mutating-data)


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/llms.txt) for all pages in this wiki.
