forked from phoenix/litellm-mirror
(fix) prisma set DATABASE_URL in env
This commit is contained in:
parent
898c072103
commit
41f5cb7f04
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ class PrismaClient:
|
|||
try:
|
||||
from prisma import Client # type: ignore
|
||||
|
||||
os.environ["DATABASE_URL"] = database_url
|
||||
self.db = Client() # Client to connect to Prisma db
|
||||
except: # if not - go through normal setup process
|
||||
print_verbose(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue