Database

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 all database data, but as of now you cannot modify database entries.

Cosmic Database

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 form of persistent data for a SaaS.

We will include more robust database support for all file types soon, but for now, if you have personal files, you can upload them to assets