Lazy AI applications leverage native SQL databases, seamlessly integrating them into Flask and FastAPI frameworks. This approach is not only scalable but also optimized for use with Large Language Models (LLMs). With Lazy, the LLM confidently handles your database, ensuring it:
Creates the database with the necessary schema.
Maintains the correct structure over time.
Seamlessly connects to both the backend and frontend of your application.
Migrations for Smooth Updates
Every Lazy project includes a migrations folder, which is responsible for creating and updating the database structure.
When you test or launch a new production version, Lazy automatically applies the necessary migrations.
You’ll see logs showing how columns, tables, or entire schemas are added or removed based on your latest changes.
This ensures your database evolves as your application grows without manual intervention.
Backup System
Lazy prioritizes your data security with regular backups:
1. Automatic Periodic Backups: Databases are periodically backed up to Google Cloud.
2. Restart Backups: Every time you restart your app, a fresh backup is created.
While frequent backups ensure data integrity, note that for very large databases, this may slightly slow down app restarts. This scenario typically occurs much later in your application’s lifecycle and you can push this out by cleaning the data (removing columns tables that you don't actually need periodically, you can always just ask lazy to do it)
Database Management Page
Lazy also provides a dedicated Database Management Page, enabling you to:
View your data directly within the app.
Manage your database with intuitive tools.
By combining automation, robust backup systems, and user-friendly management tools, Lazy ensures your database is secure, scalable, and seamlessly integrated into your app.