Base class for generating entity sub-classes, you can sub-class this class to modify/extend your own entity sub-class generator logic

Constructors

Methods

  • Parameters

    • pool: ConnectionPool
    • entities: EntityInfo[]
    • directory: string
    • skipDBUpdate: boolean

      when set to true, no updates are written back to the database - which happens after code generation when newly generated code from AI has been generated, but in the case where this flag is true, we don't ever write back to the DB because the assumption is we are only emitting code to the file that was already in the DB.

    Returns Promise<boolean>