Managing a single database can be complex enough. But what happens when your application scales, and you're suddenly juggling dozens or even hundreds of data resources? The manual process of provisioning, configuring, and updating each one becomes a significant bottleneck—slow, error-prone, and inconsistent. It’s time for a paradigm shift: Your Data, Managed as Code.
Welcome to databases.do, an agentic workflow platform designed to help you provision, query, and scale distributed databases through a single, powerful API. By treating your database infrastructure as code, you can transform complex data operations into simple, repeatable workflows, bringing velocity and reliability to your data management strategy.
Most database management tools focus on the individual instance (database.do). They provide a user interface or a CLI to interact with one database at a time. This approach breaks down at scale.
databases.do is different. It's built to manage a collection of data resources. This means you can perform operations across multiple databases at once. Need to list all available PostgreSQL instances in your project? Want to apply a security update to a specific group of NoSQL clusters? With databases.do, you can script these actions, ensuring consistency and saving countless hours of manual work.
The "Database as Code" (DaC) philosophy is at the heart of databases.do. By defining your data resources in code, you unlock the same benefits that Infrastructure as Code (IaC) brought to server management:
Getting started is simpler than you think. Let's walk through a basic workflow to see how you can use the @do/sdk to manage your data resources.
First, you'll need to install the SDK and authenticate your account. This single setup connects you to the databases.do API, giving you programmatic access to your entire data ecosystem.
npm install @do/sdk
Once installed and configured, you can start interacting with the databases agent.
Before provisioning something new, it's useful to get an inventory of what you already have. With databases.do, this is a simple, asynchronous call. The following code snippet demonstrates how to list all databases within your project.
import { databases } from '@do/sdk';
// List all databases within your project
async function listAllDatabases() {
try {
const allDbs = await databases.list();
console.log('Available Databases:', allDbs);
return allDbs;
} catch (error) {
console.error('Failed to retrieve databases:', error);
}
}
listAllDatabases();
Just a few lines of code give you a complete, real-time overview of your data resources. No more logging into multiple dashboards or running manual psql or mongo commands.
From here, the possibilities are endless. You can use the same SDK to:
Q: What is databases.do?
A: databases.do is an agentic workflow platform that allows you to manage collections of data resources as code. It provides a unified API to provision, query, and scale multiple databases, abstracting away the underlying infrastructure complexity.
Q: What types of databases can I manage?
A: The .do platform is designed to be extensible. You can manage various types of databases, including SQL, NoSQL, and graph databases, by integrating the appropriate drivers and defining them within your agentic workflows.
Q: How is this different from managing a single database.do instance?
A: database.do refers to a single data resource. databases.do empowers you to manage a collection of these resources, allowing you to perform operations across multiple databases at once, like listing all available databases or applying a configuration change to a group of them.
Stop wrestling with manual database management. Embrace the speed, consistency, and scalability of "Database as Code." databases.do provides the simple, unified API you need to automate your data infrastructure and get back to what matters most: building great applications.
Ready to get started? Visit databases.do to learn more and install the SDK today!