---
title: "Using Third-Party Builders"
description: "Integrating third-party tools with your database workflow allows you to extend the capabilities of your application while keeping your data management efficient. Whether you need to handle complex ..."
last_updated: "2026-07-02T09:37:14.185912+00:00"
canonical_url: "https://www.doc0.dev/docs/e1b68fed-3c4e-4c95-b2ba-ebf050f78025/guide/integrations/using-third-party-builders"
---

Integrating third-party tools with your database workflow allows you to extend the capabilities of your application while keeping your data management efficient. Whether you need to handle complex query building, integrate specialized caching, or work alongside existing database management tools, this guide will help you connect these services.

## Understanding Third-Party Integration
In this context, "third-party builders" refer to external libraries or services that perform specific tasks—like generating database queries or storing temporary data—that work in tandem with your main database setup. By integrating these tools, you can leverage their specific features (such as sophisticated query syntax or distributed caching) while still maintaining the integrity and structure of your database operations.

## Workflow Overview
The process generally involves initializing your database connection and passing the necessary configuration to your chosen third-party tool.

```mermaid
graph LR
    A[Database] --> B(Tool Connector)
    B --> C{Third-Party Tool}
    C --> D[Resulting Operation]
```

## How to Integrate Third-Party Builders
Integrating a tool requires ensuring the tool can communicate with your database driver. Follow these general steps:

### 1. Install the required integration package
Use your project's package manager to install the specific bridge or adapter provided for your chosen tool (e.g., Knex or Kysely).

### 2. Configure the adapter
Provide the necessary credentials and connection settings to the builder's initialization function.

### 3. Execute queries
Use the builder's syntax to construct your queries, which will then be executed through the established database connection.

> [!NOTE]
> Ensure your database driver is up to date before installing third-party integration packages to avoid compatibility issues.

## Key Concepts
| Term | Definition |
| :--- | :--- |
| **Builder** | A tool that helps you write database queries using a human-readable language. |
| **Adapter** | A bridge that allows two different pieces of software to talk to each other. |
| **Cache Store** | An external storage service used to save frequently accessed data to speed up performance. |

## Using External Cache Stores (e.g., Upstash)
When using external stores like Upstash for caching, you essentially treat the cache as a secondary layer. Your application should first check the cache store for data; if it is missing, it fetches it from the database and updates the cache.

> [!TIP]
> Always set an expiration time (TTL) for your cache items to prevent stale data from being served to your users.

## Common Integration Scenarios
### Working with Query Builders
If you are using a query builder like Knex or Kysely, you are often providing a familiar interface for complex filtering and sorting. Most of these tools allow you to pass an existing database connection object during their setup phase.

> [!WARNING]
> While using third-party builders, be mindful that using non-standard features of those tools might make your code harder to debug if a query fails. Stick to supported integration patterns.

### Configuration Options
| Setting | Description |
| :--- | :--- |
| **Connection URL** | The address of your database or cache service. |
| **Timeout** | The maximum time allowed for a request before it is cancelled. |
| **Pool Size** | The number of simultaneous connections allowed to the database. |

> [!IMPORTANT]
> Never expose your database or cache connection credentials in client-side code. Keep all configuration settings restricted to your server-side environment.

## Related

- [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.
