question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update prisma-multi-tenant new command

See original GitHub issue

Please update the command prisma-multi-tenant new Currently we are building slack like app. So, we’re finding the solution for creating tenant by calling the rest api on the frontend side.

We are going to run the prisma-multi-tenant new command using const { exec } = require('child_process'); But we are not able to input tenant name and database url which is asked by prisma-multi-tenant new command.

So, please make the argument option like this prisma-multi-tenant new -name='tenant1' -databaseurl='postgresql://postgres:postgres@localhost:5432/xxxxx'

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Dec 26, 2019
const { Management } = require('prisma-multi-tenant')

const management = new Management()

management.newTenant({
  name: 'the_name',
  url: 'postgresql://...'
})

This solution works for me. btw, prisma-multi-tenant new --name=the_name --url=postgresql://... still ask Are you sure of your inputs?, so I can’t use it

0reactions
Errornamecommented, Dec 27, 2019

The latest version also fixes the prisma-multi-tenant new --name=abc --url=something bug, so I’ll close this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

prisma-multi-tenant/Complete_Documentation.md at master
Use Prisma as a multi-tenant provider for your application ... The new command create a new database using your schema. It will use...
Read more >
Manage Multiple Tenants in Prisma Access - Palo Alto Networks
Manage Multiple Tenants in Prisma Access ... Existing or future non-multitenant deployments are not affected by multitenancy and will continue to ...
Read more >
How to create a Multi-tenant application with Next.js and Prisma
Creating a map of domains to organizations. Run the yarn prisma migrate dev command and you should be good to go. In your...
Read more >
prisma-multi-tenant-fork - npm package - Snyk
Prisma gives you all the tools necessary to handle your database: data modeling, database schema migrations, type safe database access, etc.
Read more >
Prisma Client Just Became a Lot More Flexible
This example shows how to use a Prisma Client extension to isolate data between tenants in a multi-tenant app using Row Level Security...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found