MarvinKR
MarvinKR
Explore posts from servers
DTDrizzle Team
Created by MarvinKR on 11/26/2024 in #help
Switched to Neon Websockets but now some queries are timing out
Not sure if it’s the right one but it seems to work so never looked back haha
7 replies
DTDrizzle Team
Created by MarvinKR on 11/26/2024 in #help
Switched to Neon Websockets but now some queries are timing out
I used the method above
7 replies
HHono
Created by JustUseFirefox on 9/8/2024 in #help
Looking for demo repo on how to implement tests
How are your tests going so far ?
10 replies
HHono
Created by JustUseFirefox on 9/8/2024 in #help
Looking for demo repo on how to implement tests
Thank you for this thread, was going to write the same one!
10 replies
DTDrizzle Team
Created by lolmaus (Andrey Mikhaylov) on 10/27/2023 in #help
Acceptance testing practices? In-memory Postgres mock for high-speed acceptance testing?
Haha you lost me in the second part 🤣
20 replies
DTDrizzle Team
Created by lolmaus (Andrey Mikhaylov) on 10/27/2023 in #help
Acceptance testing practices? In-memory Postgres mock for high-speed acceptance testing?
I have a NextJS setup, does it change much? I guess not if I use RQ hooks like the guy did in the repo I shared?
20 replies
DTDrizzle Team
Created by lolmaus (Andrey Mikhaylov) on 10/27/2023 in #help
Acceptance testing practices? In-memory Postgres mock for high-speed acceptance testing?
Yeah cloned that one!
20 replies
DTDrizzle Team
Created by lolmaus (Andrey Mikhaylov) on 10/27/2023 in #help
Acceptance testing practices? In-memory Postgres mock for high-speed acceptance testing?
Never heard of PGLite before! I saw this repo (https://github.com/michaelshimeles/react-local-first-hono) using DexieJS + Hono + Drizzle & got curious to see if anyone in this Discord did use IndexedDB to build a sync engine! So I guess we need PGlite vs. what he did in his repo right?
20 replies
DTDrizzle Team
Created by MarvinKR on 11/26/2024 in #help
Switched to Neon Websockets but now some queries are timing out
@raoufchebri
7 replies
DTDrizzle Team
Created by MarvinKR on 11/26/2024 in #help
Switched to Neon Websockets but now some queries are timing out
Tried this fix, can I combine both methods in a single drizzle file and use only dbPool for transactions?
import { Pool, neon } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-serverless";
import { drizzle as drizzleHttp } from "drizzle-orm/neon-http";
import * as schema from "@/db/schema";

const pool = new Pool({ connectionString: process.env.DATABASE_URL });
export const dbPool = drizzle(pool, { schema });

const sql = neon(process.env.DATABASE_URL!);
export const db = drizzleHttp(sql, { schema });
import { Pool, neon } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-serverless";
import { drizzle as drizzleHttp } from "drizzle-orm/neon-http";
import * as schema from "@/db/schema";

const pool = new Pool({ connectionString: process.env.DATABASE_URL });
export const dbPool = drizzle(pool, { schema });

const sql = neon(process.env.DATABASE_URL!);
export const db = drizzleHttp(sql, { schema });
7 replies