east-migration-duration-logger

East plugin which logs duration of every migration

Usage no npm install needed!

<script type="module">
  import eastMigrationDurationLogger from 'https://cdn.skypack.dev/east-migration-duration-logger';
</script>

README

east migration duration logger

East (node.js database migration tool) plugin which logs duration of every migration.

Build Status Coverage Status Npm version

Installation

npm install east-migration-duration-logger

Usage

Add this plugin to the plugins section to .eastrc e.g.:

{
  "plugins": ["east-migration-duration-logger"]
}

That's it, after that duration of migrate, rollback actions will be logged to the output e.g.:

> east migrate
arget migrations:
    1_doSomething
    2_doSomethingElse
Migrate "1_doSomething"
Action migrate of "1_doSomething" done in 206ms
Migration done
Migrate "2_doSomethingElse"
Action migrate of "2_doSomethingElse" done in 1ms
Migration done