[data-reveal]{opacity:1!important;transform:none!important}
Database

Database Interface

Overview

The Database interface provides AQL (Antelope Query Language), a database-agnostic query API. Each module implements this generic interface with the database engine of its choice. AQL offers a chainable, type-safe query builder that works identically across all supported backends, so your application code remains portable regardless of the underlying database.

Documentation Structure

Features

  • Database-agnostic query interface
  • Consistent API across different database implementations
  • Type-safe operations using TypeScript generics
  • Schema-based database structure definition
  • Multi-instance support per schema
  • Secondary index support
  • Change feeds for real-time updates
  • Async iteration with cursor support
  • Chainable query builder with lazy evaluation

Database Interoperability

AQL decouples your application logic from the database engine. The same query code works with any backend that implements the interface, such as MongoDB, RethinkDB, or other community-provided implementations. This reduces migration cost and keeps your code portable.