Cosmic Database
Learn how to work with Cosmic's built-in database system to store, retrieve, and manage your application data.
Database Overview
When building a project through Cosmic, you have access to your own private database that you can persist information and data to. You can view and write to the database.
There is no setup, additional costs, or API keys you need to manage for yourself.
Using Cosmic Database
To integrate database functionality, just ask Cosmic to implement Cosmic Database. You can have a wide variety of supported use cases.
- Save game high scores for authenticated users, and persist them to the database for a leaderboard page.
- Persist user specific data, like purchase history, items, and more.
- Build a real time chat application that uses the database to saves every user's messages.
- Store blog posts and other text-based form of persistent data for a SaaS.