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

Read operations:

  • getComicsForEvent(eventId): Promise<ComicEvent[]> - Retrieves all Comics for an Event. Experimental.
  • getEventForComic(comicId): Promise - Retrieves an Event for a Comic by ID. Experimental.
  • getComicEvent(comicId, eventId): Promise<ComicEvent | null> - Reads a single ComicEvent by comicId and eventId.
  • getComicEvents(): Promise<ComicEvent[]> - Reads all ComicEvents.

Hierarchy

  • Dao
    • ComicEventDao

Constructors

  • Parameters

    • db: Knex<any, any[]>

    Returns ComicEventDao

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 ComicEvent by comicId and eventId.

    Parameters

    • comicId: string

      The ID of the comic.

    • eventId: string

      The ID of the event.

    Returns Promise<null | ComicEvent>

    ComicEvent or null if comicId or eventId does not exist.

  • Experimental

    Retrieves all Comics for an Event.

    Parameters

    • eventId: string

      The ID of the Event.

    Returns Promise<ComicEvent[]>

    ComicModel[]

  • Experimental

    Retrieves an Event for a Comic by ID.

    Parameters

    • comic_id: string

      The ID of the Comic.

    Returns Promise<Event>

    Event