Create Database
How to create a new database using Arcsec
Creating a new database in Arcsec involves generating necessary encryption keys and initializing the database structure. This operation is crucial for setting up your secure, decentralized database.
This operation is handled by the /api/create-database endpoint in the backend, however that endpoint is not intended for external use. To create a new database always use the UI interface. Programatic database creation is not supported at this time.
API Route
- Route:
/api/create-database - Operation:
create
Key Operations
When creating a new database, the following operations are performed:
- Generate a unique Database ID and internal details
- Create encryption keys
- Initialize database structure
- Store the empty encrypted database on IPFS
- Store the database ID, encryption keys, and other details in the Arcsec database
Usage
As mentioned, you can create a new database using the UI interface. Once you have created a database, you will be able to interact with it via the UI or API.