API Reference

Complete API documentation for MSR Firebase classes, interfaces, and services.

Table of contents

  1. Main Classes
  2. FirebaseRunner
  3. FirebaseConfig
  4. Migration Writing API
  5. Migration Interfaces
  6. Services
  7. Type Definitions
  8. Types
  9. Getting Started
  10. External Documentation

Main Classes

These are the primary classes for using MSR Firebase:

FirebaseRunner

Main migration runner class for executing Firebase Realtime Database migrations.

  • Factory method: getInstance()
  • Firebase-specific methods: getConnectionInfo(), getDatabase(), listNodes(), backupNodes()
  • Inherits all migration methods from MSR Core MigrationScriptRunner

FirebaseConfig

Configuration class for Firebase connection and migration settings.

  • Firebase properties: databaseUrl, applicationCredentials, shift, backupPaths
  • Migration settings: folder, tableName, locking
  • Utility methods: buildPath(), getRoot()

Migration Writing API

Migration Interfaces

TypeScript interfaces used when writing migrations:

  • IFirebaseDB - Database interface passed to migration scripts
  • FirebaseHandler - Handler class passed to migration scripts (available from runner.getHandler() when needed)

Services

Optional helper services for Firebase operations within migrations:

  • EntityService - CRUD operations for typed entities
  • FirebaseDataService - Low-level Firebase data operations

Type Definitions

Types

TypeScript type definitions and utilities for Firebase migrations.


Getting Started

For practical usage examples, see:

External Documentation

For inherited functionality and core concepts, see:


MSR Firebase focuses on consumer API documentation. Internal implementation details (handlers, adapters) are not documented here as they’re managed automatically by the framework.