MySQL Generator
The MySQL generator creates new migration files with the .sql
extension. In the same package you can find the MySQL Loader and the MySQL Storage.
Installation
npm install @emigrate/mysql
pnpm add @emigrate/mysql
yarn add @emigrate/mysql
bun add @emigrate/mysql
{ "dependencies": { "@emigrate/mysql": "*" }}
Usage
npx emigrate new --plugin mysql create some fancy table
pnpm emigrate new --plugin mysql create some fancy table
yarn emigrate new --plugin mysql create some fancy table
bunx --bun emigrate new --plugin mysql create some fancy table
{ "scripts": { "emigrate": "emigrate" }}
deno task emigrate new --plugin mysql create some fancy table
For more information see the new
command’s documentation.