Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cama

Hierarchy

  • Cama

Implements

  • ICama

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Cama(camaConfig: ICamaConfig): Cama

Properties

Private camaConfig

camaConfig: ICamaConfig

Methods

initCollection

  • initCollection<T>(collectionName: string, config: ICollectionConfig): Promise<ICollection>
  • Initializes a collection with the appropriate persistence adapter

    remarks

    Initialises collection metadata if non-existent, else loads it

    Type parameters

    • T

    Parameters

    • collectionName: string

      the collection name

    • config: ICollectionConfig

      The collection configuration

    Returns Promise<ICollection>

    an initialised collection

Generated using TypeDoc