Socket
Socket
Sign inDemoInstall

@amplication/plugin-db-sqlserver

Package Overview
Dependencies
0
Maintainers
8
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @amplication/plugin-db-sqlserver

Use an MS SQL Server database in a service generated by Amplication


Version published
Weekly downloads
20K
decreased by-14.42%
Maintainers
8
Install size
192 kB
Created
Weekly downloads
 

Readme

Source

@amplication/plugin-db-sqlserver

NPM Downloads

Use an MS SQL Server database in the service generated by Amplication.

Purpose

This plugin adds the required code to use MS SQL Server database in the service generated by Amplication. It updates the following parts:

  • Updates the datasource on the schema.prisma file
  • Adds the required services and variables to docker-compose.yml
  • Add the db service to the docker-compose.dev.yml
  • Add the required environment variables to .env

Configuration

The plugin uses the parameters configured on the plugin settings page. These settings include: host, port, user, password, dbName

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

Last updated on 28 Dec 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc