Options
All
  • Public
  • Public/Protected
  • All
Menu

Module orm_functions/language

Index

Functions

  • createLanguage(name: string): Promise<language>
  • deleteLanguage(languageId: number): Promise<language>
  • deleteLanguageByName(name: string): Promise<language>
  • Parameters

    • name: string

      the name of the language we are deleting from the language-table

    Returns Promise<language>

    the deleted record in the database

  • getAllLanguages(): Promise<language[]>
  • getLanguage(languageId: number): Promise<null | language>
  • returns:

    object with the name of the language

    Parameters

    • languageId: number

    Returns Promise<null | language>

  • getLanguageByName(name: string): Promise<null | language>
  • returns:

    the language object with a matching name

    Parameters

    • name: string

    Returns Promise<null | language>

Generated using TypeDoc