You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@example seems to fail to parse whole snippet when using decorators #995
/** * Migrations are used to upgrade your database structure as you roll out new versions of code. These can be ran automatically, programatically. Torm currently only supports forward migrations. At the end of the day, this class essentially just wraps logic around version numbers and a function call with access to a database driver. * @example * ```ts * const migrations = new MigrationRegistry() * * @migrations.register() * class AddNewColumnMigration extends Migration { * version = '1.1.0' * * call() { * this.driver.exec(`ALTER TABLE book ADD COLUMN genre TEXT`) * } * } * * class BookORM extends Torm {} * * const db = new BookORM('books.db', {migrations}) * db.init({auto_migrate: false}) // this will prevent torm from automatically running migrations upon startup * // this is the general workflow for migrating manually: * const current_db_version = db.schemas.version() * if (db.migrations.is_database_outdated()) { * db.migrations.upgrade_database() * } * * ``` */
changed the title [-]@example seems to fail to parse whole snippet[/-][+]@example seems to fail to parse whole snippet when using decorators[/+]on Feb 27, 2025
Activity
[-]@example seems to fail to parse whole snippet[/-][+]@example seems to fail to parse whole snippet when using decorators[/+]neonbyte1 commentedon Feb 17, 2026
Yeah, wanted to write a documentation for a package and faced exactly this issue.