DT
Drizzle Teamitsyoboieltr
Is there any way to call drizzle-kit with the new node --env-file=.env argument?
Hey, since node supports env files since pretty recently, it would be nice if we could ditch dotenv. Now I only require dotenv to inject the environment variables to drizzle.config.ts to allow drizzle-kit to db push 😄
itsyoboieltr•193d ago
I tried
but it returns
because env files are loaded before the options are evaluated. I am wondering if there is anything else I could try?
also tried
with no success
I figured it out!!! This was not that self-explanatory lol
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.4KMembers
View on DiscordWant results from more Discord servers?
More Postsenumerating tablesI have a table of possible 'statuses' for a column in my records table and would like my zod schema how to group Related Items```typescript
// index.ts
const coursesList = await db
.select({ title: courses.title, tags: tagsNested where filter, how to not include emptyThe following almost works
```
const query = db.query.productionItem.findMany({
with: {
itemStis placeholder in prepare statements deprecated!??```typescript
const courses = db.query.userCourses
.findMany({
where: eq(placeholder("userId")SQLite json_eachHi. I wandted to use the json_each function in sqlite, but I dont think the query is building correcForeign key truncated for being too long?Hi,
I have multiple warnings / notices:
`{
severity_local: 'NOTICE',
severity: 'NOTICE',
codedrizzle-zod with custom typesI have defined opaque types in my application and have implemented those in the drizzle schema (awesUsing transactions in automated testing like JestI have a testing set-up as follows:
1. Start postgres container
2. Apply migrations to db
3. Jest t