Function generateSQLiteModels

  • Generates SQLite models using Knex and the provided options for parsing and formatting.

    Parameters

    • knexInstance: Knex<any, any[]>

      The Knex instance connected to the SQLite database.

    • opts: IGenerateModelsOptions = {}

      The options containing parse and format functions.

    Returns Promise<Record<string, typeof Model>>

    A promise that resolves to a record of models.