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

Read operations:

  • getSere(seriesId): Promise - Reads a single Series by ID.
  • getSeries(): Promise - Reads all Series.

Hierarchy

  • Dao
    • SeriesDao

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • db: Knex<any, any[]>

    Returns SeriesDao

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 a single Series by ID.

    Parameters

    • seriesId: string

      The ID of the series.

    Returns Promise<null | Series>

    Series or null if seriesId does not exist.

  • Reads all Series.

    Returns Promise<Series[]>

    Series[]