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

Read operations:

  • getSignaturesByComic(comicId): Promise - Reads a single Signature by comic ID.
  • getComicsBySignature(creatorId): Promise<Signature[]> - Reads Signatures by creator ID.
  • getSignatures(): Promise<Signature[]> - Reads all Signatures.

Hierarchy

  • Dao
    • SignaturesDao

Constructors

  • Parameters

    • db: Knex<any, any[]>

    Returns SignaturesDao

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 Signatures by creator ID.

    Parameters

    • creatorId: string

      The ID of the creator.

    Returns Promise<Comic[]>

    Comic[]

  • Reads a single Signature by comic ID.

    Parameters

    • comicId: string

      The ID of the comic.

    Returns Promise<Signature>

    Signature or undefined.