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