41 lines
929 B
Text
41 lines
929 B
Text
---
|
|
title: "MySQL Generator"
|
|
---
|
|
|
|
import { Tabs, TabItem } from '@astrojs/starlight/components';
|
|
import Link from '@components/Link.astro';
|
|
|
|
The MySQL generator creates new migration files with the `.sql` extension. In the same package you can find the <Link href="/plugins/loaders/mysql/">MySQL Loader</Link> and the <Link href="/plugins/storage/mysql/">MySQL Storage</Link>.
|
|
|
|
## Installation
|
|
|
|
<Tabs>
|
|
<TabItem label="npm">
|
|
```bash
|
|
npm install @emigrate/mysql
|
|
```
|
|
</TabItem>
|
|
<TabItem label="pnpm">
|
|
```bash
|
|
pnpm add @emigrate/mysql
|
|
```
|
|
</TabItem>
|
|
<TabItem label="yarn">
|
|
```bash
|
|
yarn add @emigrate/mysql
|
|
```
|
|
</TabItem>
|
|
<TabItem label="bun">
|
|
```bash
|
|
bun add @emigrate/mysql
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
emigrate new --plugin mysql create some fancy table
|
|
```
|
|
|
|
For more information see <Link href="/commands/new/">the `new` command</Link>'s documentation.
|