Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • deleteObjects(findOptions: object, objectType: Function): Promise<void>
  • async

    Deletes objects in the given Repository

    Parameters

    • findOptions: object

      Repository with the objects to be deleted

    • objectType: Function

      SQL statement to identify those to be deleted

    Returns Promise<void>

  • getObjects(findOptions: object, objectType: Function): Promise<object[]>
  • async

    Returns any object that meets the conditions

    Parameters

    • findOptions: object

      Repository with the objects

    • objectType: Function

      SQL statement to identify the objects

    Returns Promise<object[]>

    • Returns the list of objects that where found
  • getOneObject(findOptions: object, objectType: Function): Promise<object>
  • async

    Returns one object that meets the conditions

    Parameters

    • findOptions: object

      Repository with the object

    • objectType: Function

      SQL statement to identify the objects

    Returns Promise<object>

    • Returns the objects that was found
  • saveObject(obj: object, objectType: Function): Promise<void>
  • async

    Saves or overwrites an object in the Repository

    Parameters

    • obj: object
    • objectType: Function

      Repository where the object should be saved

    Returns Promise<void>

Generated using TypeDoc