Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplication/plugin-db-mongo

Package Overview
Dependencies
Maintainers
7
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/plugin-db-mongo

Use a Mongo database in a service generated by Amplication

  • 0.0.2
  • npm
  • Socket score

Version published
Weekly downloads
178K
decreased by-1.21%
Maintainers
7
Weekly downloads
 
Created
Source

@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"

FAQs

Package last updated on 30 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc