This class is the hub that enables you to connect to queries

Constructors

  • Create an instance of Firestorm.

    It doesn't instantly connect. You have to make a call to connect for that

    Parameters

    • Optionalname: string

      Name of the instance

    Returns Firestorm

Properties

name: string = ""

Name of the app

Accessors

  • get firebaseApp(): null | FirebaseApp
  • The underlying firebase app

    Returns null | FirebaseApp

  • get firebaseAuth(): Auth
  • The instance of auth

    Returns Auth

  • get firebaseStorage(): FirebaseStorage
  • The instance of storage

    Returns FirebaseStorage

  • get firestore(): Firestore
  • The instance of firestorm

    Returns Firestore

  • get isConnected(): boolean
  • True if this instance if connected to a firestore

    Returns boolean

  • get options(): null | FirebaseOptions
  • Gets the (read-only) options of this firestorm instance.

    Returns null | FirebaseOptions

Methods

  • Connect to the DB.

    If an app with the same name already exists, it will use that. Otherwise it will create a new instance using the options.

    Parameters

    • Optionaloptions: FirebaseOptions

      Options to create the app

    Returns void

    if no previous app of the same name and no options provided

  • Call this after connecting to use the emulator instead of the database.

    Parameters

    Returns void