drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Create database with relations for tests

Open
#2,061 6 comments 8 reactions 0 assignees View on GitHub
docs docs/undocumented drizzle/kit
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Describe what you want

For my e2e tests I want to create new database for each test so they can run in parallel but I am having huge trouble creating a new empty database and adding my schemas to it. It would be great if Drizzle could assist with this or if you can give some hints in this issue how to solve it:

1. I create PostgreSQL client with `pg` and connect
2. I create a new database (I cant do this with Drizzle?)
3. I try to create Drizzle client -> Error relationship xy doesnt exist

Normally I would use `drizzle-kit push` but it seems like there isnt a function that does the same that I could call from my code?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.