93 questions
0 votes
0 answers
115 views
Webpack Error: I got an error when I ran npm run build
Module build failed: UnhandledSchemeError: Reading from "node:events" is not handled by plugins (Unhandled scheme). Webpack supports "data:" and "file:" URIs by default. ...
-1 votes
2 answers
511 views
drizzle ORM db generate reset [closed]
There is a problem that in migration i have accidentally deleted the base file and whenever I run generate command it will make file that have command applies changes to main file(in which I need the ...
0 votes
0 answers
163 views
Why is it showing Invalid URL error while trying to connect a Neon Database with Drizzle ORM?
While trying to connect a Neon Database and DrizzleORM, my next.js program was reflecting an error while trying to run "npx drizzle-kit push". Warning '@neondatabase/serverless' can only ...
1 vote
1 answer
953 views
Filtering by Dates in drizzle ORM
How can I use Drizzle to query records within a specific time frame defined by two timestamps? I'm using PostgreSQL and I searched and it seems the only thing available is between() method, which only ...
0 votes
1 answer
47 views
Drizzle migration failed to create view
I'm working on a react-native application with op-sqlite and drizzle. For the first migration, I've defined a view: export const operationListItems = sqliteView('OperationListItems', { OperationType:...
1 vote
1 answer
861 views
Drizzle ORM + Postgres, how to specify Postgres database Schema? defaults to public
I am trying to set connection to Postgres from Drizzle, but I cannot set the schema name in the connection string I tried postgres://localhost:5432/mydatabase?searchpath=myschema postgres://...
1 vote
0 answers
307 views
How to share drizzle inferred types between backend and frontend in a monorepo?
The types are inferred from drizzle queries in the backend. I thought of exporting types from backend -> shared package -> frontend. But this seems like a bad idea now. How to share the types ...
0 votes
1 answer
323 views
How to get type from drizzle query
I'm trying to get the type from a query that I made, but I'm not sure how to do it. I've tried using $inferSelect but it gives me the whole table and not selected columns I want. export const ...
0 votes
2 answers
205 views
Setting Up Drizzle + Postgres in React Native Stuck with Installing Drizzle-ORM?
I thought most if not all of Drizzle's Postgres setup for React Native would be pretty much React Native agnostic in the end, so I followed their "Get Started" tutorial to get to this point. ...
0 votes
0 answers
327 views
Seeding dates sequentially with drizzle-seed
Say I have a drizzle MySQL schema with a table session. I'd like to store when the session was started, and when the session was ended (created_at, started_at, respectively). Here is an excerpt from ...
1 vote
0 answers
499 views
typescript import error while using bun workspaces, might because how bun install node_modules in monorepo
Getting this error while using monorepos with bun-workspaces. While I don't suggest to use bun for monorepo. I have packages/* and apps/* getting error while importing drizzle-client pacakges from ...
1 vote
0 answers
43 views
Is it possible to introspect relations in drizzle-orm?
Let's say I have the following relation definition: export const externalUsersRelations = relations(external_users, ({one}) => ({ users: one(users, { fields: [external_users.user_id], ...
0 votes
2 answers
42 views
`updateProfile` does not update the `messageCount`
I'm working on an application that interacts with a PostgreSQL with drizzle-orm, and I'm having trouble updating a user's message count in profile. The updateProfile function is supposed to increment ...
0 votes
0 answers
65 views
VPS sqlite issue on hostinger server
I am writing webapplication in Next.js, Drizzle-orm, sqlite and tested it on local machine, its working without any issues but when I move to hostinger.com VPS server its not working. It gives 500 ...
0 votes
0 answers
21 views
Problem validating state in Discord OAuth2, NextJS
I am trying to create a Discord OAuth2 application from scratch. Everything has gone well except trying to implement state to prevent CSRF attacks. I don't know how to pass the state generated from ...