Skip to content

Database Interface

Learn how to set up database interfaces for your OCPI application.

Example Implementation

See the Quick Start Guide for a complete example of implementing a database interface with MongoDB.

The example shows how to:

  • Create a DbInterface class for database operations
  • Map OCPI modules to database collections
  • Implement pagination and filtering
  • Handle date range queries