Handles all interactions with the comics-db 'series_genre' table.

Read operations:

  • getGenresForSeries(seriesId): Promise<Genre[]> - Reads Genres associated with a Series.
  • getSeriesGenres(): Promise<SeriesGenre[]> - Reads all SeriesGenres.

Hierarchy

  • Dao
    • SeriesGenreDao

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • db: Knex<any, any[]>

    Returns SeriesGenreDao

Properties

db: Knex<any, any[]>

Accessors

  • get primaryKey(): string
  • The primary key of the table as defined in the database.

    Returns string

  • get tableName(): string
  • The name of the table as defined in the database.

    Returns string

Methods

  • Reads Genres associated with a Series.

    Parameters

    • seriesId: string

      The ID of the series.

    Returns Promise<Genre[]>

    Genre[]