In modern software development, speed is everything. But for our team, a recurring bottleneck was slowing us down: the backend data layer. For every new feature, we found ourselves drowning in a sea of boilerplate code just to perform basic Create, Read, Update, and Delete (CRUD) operations. It was tedious, repetitive, and a major drain on our resources.
We knew there had to be a better way. Our search led us to database.do, an AI-native data access platform that promised to change how we interact with our data. The result? We cut our backend development time by a staggering 40% and revolutionized our workflow. Here’s how we did it.
Before database.do, our development process was hampered by several key challenges:
Prototyping was slow, and our developers were spending more time on plumbing than on building the features that actually delivered value to our users.
We discovered database.do while searching for a better "database as code" solution. The promise of an AI-native data access API that could intelligently handle CRUD, search, and resource management across all our databases with a single, unified interface was exactly what we needed.
Implementation was surprisingly simple.
We connected our primary PostgreSQL and secondary MongoDB databases in minutes. The process was secure, intuitive, and required no complex configuration. database.do immediately became a centralized, intelligent gateway to all our data, without us having to migrate a single record.
This is where the magic happened. We went from writing entire files for API endpoints to writing single lines of code.
Consider a simple task: finding a user by their email.
The Old Way (Using a standard web framework and ORM):
You'd typically need to set up a route, a controller, and a service function. It might look something like this:
// routes/userRoutes.js
router.get('/users/:email', userController.findUserByEmail);
// controllers/userController.js
async function findUserByEmail(req, res) {
try {
const user = await db.user.findUnique({
where: { email: req.params.email },
});
if (!user) {
return res.status(404).json({ message: 'User not found' });
}
res.status(200).json(user);
} catch (error) {
res.status(500).json({ message: 'Server error' });
}
}
This is a lot of code for one simple read operation.
The New Way (with database.do):
With database.do, we interact with our data using a clean, intelligent agent. The same operation becomes a single, elegant function call.
import { createDo } from '@do-sdk/core';
// Initialize the .do client
const doClient = createDo(process.env.DO_API_KEY);
// Use the database agent to find a user by email
async function findUser(email: string) {
const user = await doClient.database.findUnique('users', {
where: { email },
});
console.log('Found user:', user);
return user;
}
findUser('hello@example.com');
That’s it. No routes, no HTTP handling, no repetitive boilerplate. The .do client handles the secure communication, query construction, and data retrieval. By adopting this intelligent CRUD model, we eliminated hundreds of lines of code for every data entity.
The benefits went far beyond simple CRUD. We needed to build a complex search feature to find customers based on multiple, dynamic criteria. This would have required a complex query builder on our backend.
With database.do, the AI agent interprets complex where clauses to construct the optimal query, regardless of the underlying database. We could create powerful filters with simple, declarative JSON, letting the AI handle the heavy lifting. This saved us weeks of development on advanced search features alone.
By integrating database.do into our workflow, the impact was immediate and measurable.
database.do is more than just an API or an ORM; it's an intelligent agent for your entire data layer. It fundamentally changed the way we build software, freeing us from the complexity of data management and allowing us to build better products, faster.
If you're tired of writing boilerplate and want to interact with your data like never before, it's time to give database.do a try.
Q: What is database.do?
A: database.do is an AI-powered agentic workflow platform that provides a unified, intelligent API for interacting with your databases. It simplifies complex operations like search and CRUD into simple function calls.
Q: What types of databases can I connect?
A: You can connect to a wide range of SQL and NoSQL databases. Our platform is designed to be data-source agnostic, providing a consistent interface regardless of the underlying technology.
Q: How does the AI-native search work?
A: Our AI agent interprets natural language queries or complex criteria to perform intelligent, context-aware searches across your data, returning the most relevant results without needing you to write complex SQL.
Q: Is it secure to connect my database?
A: Absolutely. Security is our top priority. All connections are encrypted, and we provide robust access control and credential management to ensure your data is always protected.