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

Read operations:

  • getBoard(boardId): Promise - Reads a single Board by ID.
  • getBoards(): Promise<Board[]> - Reads all Boards.

Hierarchy

  • Dao
    • BoardsDao

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • db: Knex<any, any[]>

    Returns BoardsDao

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 Board by ID.

    Parameters

    • boardId: string

      The ID of the board.

    Returns Promise<null | Board>

    Board or null if the boardId does not exist.

  • Reads all Boards.

    Returns Promise<Board[]>

    Board[]