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

Read operations:

  • getBagForComic(comicId): Promise - Retrieves the Bag that a Comic is stored in. Deprecated.
  • getBoardForComic(comicId): Promise - Retrieves the Board that a Comic is stored with. Deprecated.
  • getComicBagBoard(comicId): Promise<ComicBagBoard | null> - Reads a single ComicBagBoard by comicId.
  • getComicBagBoards(): Promise<ComicBagBoard[]> - Reads all ComicBagBoards.

Hierarchy

  • Dao
    • ComicBagBoardDao

Constructors

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

  • Retrieves the Bag that a Comic is stored in.

    Parameters

    • comicId: string

      The ID of the Comic.

    Returns Promise<Bag>

    Bag.

    Use getComicBagBoard

  • Retrieves the Board that a Comic is stored with.

    Parameters

    • comicId: string

      The ID of the Comic.

    Returns Promise<Board>

    Board.

    Use getComicBagBoard.

  • Reads a single ComicBagBoard by comicId.

    Parameters

    • comicId: string

      The ID of the comic.

    Returns Promise<null | ComicBagBoard>

    ComicBagBoard or null if comicId does not exist.