Skip to content
On this page

Database Overview

AirCode provides an out-of-the-box database, which can be accessed and operated directly through aircode.db in the cloud function, and there is no need for separated purchase, configuration, and connection steps:

js
const MyTable = aircode.db.table('myTable');
const item = await MyTable.save({
  name: 'Macbook Air',
  quantities: 25,
});
const MyTable = aircode.db.table('myTable');
const item = await MyTable.save({
  name: 'Macbook Air',
  quantities: 25,
});

In addition, the underlying layer of the database is Schema Free. This means that you don't need to construct the schema fields in advance, you only need to store the data directly, and AirCode will automatically identify the schema information.

Quickstart

Essential

API Definition

Advanced Usage

Limits