1.4.11 • Published 10 months ago

@amplication/plugin-db-mongo v1.4.11

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
10 months ago

@amplication/plugin-db-postgres

NPM Downloads

Use a PostgreSQL database in the service generated by Amplication.

Note: this plugin is used by the code generation engine by default when no other DB plugin is installed.

Purpose

This plugin adds the required code to use PostgreSQL database in the service generated by Amplication. It updateds the following parts:

  • Updates the datasource on the schema.prisma file
  • Adds the requires services and varables to docker-compose.yml
  • Replaces the docker-compose-db.yml
  • Add the requires environment variables to .env

Configuration

The plugin uses the parameters configured on the database tab on the service settings page

image

Usage

This plugin integrates with the all default tasks and scripts used by the generated service:

    "seed": "ts-node scripts/seed.ts",
    "db:migrate-save": "prisma migrate dev",
    "db:migrate-up": "prisma migrate deploy",
    "db:clean": "ts-node scripts/clean.ts",
    "db:init": "run-s \"db:migrate-save -- --name 'initial version'\" db:migrate-up seed",
    "prisma:generate": "prisma generate",
    "docker:db": "docker-compose -f docker-compose.db.yml up -d",
    "docker:build": "docker build .",
    "compose:up": "docker-compose up -d",
    "compose:down": "docker-compose down --volumes"
1.4.13

10 months ago

1.4.12

10 months ago

1.4.14

10 months ago

1.4.11

12 months ago

1.4.10

12 months ago

1.4.9

1 year ago

1.4.6

1 year ago

1.4.9-beta.0

1 year ago

1.4.5

1 year ago

1.4.9-beta.1

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.1

2 years ago

1.4.1-beta.3

2 years ago

1.4.1-beta.0

2 years ago

1.4.1-beta.2

2 years ago

1.4.1-beta.1

2 years ago

1.4.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.0

2 years ago

1.3.1-beta.1

2 years ago

1.3.1-beta.0

2 years ago

1.2.13-beta.0

2 years ago

1.2.4-beta.4

2 years ago

1.2.8

2 years ago

1.2.4-beta.1

2 years ago

1.2.7

2 years ago

1.2.4-beta.0

2 years ago

1.2.6

2 years ago

1.2.4-beta.3

2 years ago

1.2.5

2 years ago

1.2.4-beta.2

2 years ago

1.2.3-beta.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.9

2 years ago

1.2.12

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago