naethan
naethan
Explore posts from servers
DTDrizzle Team
Created by naethan on 4/14/2025 in #help
Drizzle config and websocket
See the important callout in the docs here (go to Neon Websockets tab): https://orm.drizzle.team/docs/connect-neon#step-2---initialize-the-driver-and-make-a-query It says to add ws in the drizzle config, but I don't know where. Additonally I opted to use pool with neon. The issue I am having is that my migrations are not being applied correctly and I am wonder if incorrect config is the reason. Here is my drizzle.config.ts
import { defineConfig } from "drizzle-kit";
import { Resource } from "sst";

export default defineConfig({
dialect: "postgresql",
schema: "./core/db/schema.ts",
out: "./drizzle/migrations",

dbCredentials: {
url: Resource.DatabaseCredentials.dbUrl,
},
});
import { defineConfig } from "drizzle-kit";
import { Resource } from "sst";

export default defineConfig({
dialect: "postgresql",
schema: "./core/db/schema.ts",
out: "./drizzle/migrations",

dbCredentials: {
url: Resource.DatabaseCredentials.dbUrl,
},
});
1 replies
DTDrizzle Team
Created by naethan on 5/4/2023 in #help
Can't generate migrations because of top level await
2 replies
RRefine
Created by exotic-emerald on 2/9/2023 in #ask-any-question
Can i implement useInfiniteList with useTable or useDataGrid?
The api I am using in my custom data provider does not have a way get total which useList requires. UseInfiniteList seems like the next best option. I am using cursor based pagination and UseInfiniteList support pagination I am just not sure how to integrate it into a table.
3 replies