Socket
Socket
Sign inDemoInstall

brackets-prisma-db

Package Overview
Dependencies
11
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    brackets-prisma-db

A sql database with prisma for brackets-manager.js


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

brackets-prisma-db

This implementation of the CrudInterface uses prisma to store the data in an SQL Database.

Warning This implementation has not been full tested yet. Use with caution.

Limitations

Currently there are some features of the manager that can't be used.

FeatureStatus
Custom ParticipantsImplemented
Custom MatchesNot Implemented

Usage

To use this implementation make sure you have prisma included in your project. A Guide on how to include prisma in your project can be found on the official documentation page.

Once prisma is included in your project copy the schema.prisma into your project. If you have an existing schema.prisma in your project copy and paste the schema definitions into your existing one.

Warning Do not rename any of the models or enums provided! This will break the implementation.

Next generate the prisma client using npx prisma generate. Lastly push the definition to your database using npx prisma db push.

import { SqlDatabase } from 'brackets-prisma-db';
import { prisma } from './client';
import { BracketsManager } from 'brackets-manager';

const storage = new SqlDatabase(prisma);
const manager = new BracketsManager(storage);

Keywords

FAQs

Last updated on 23 Jul 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