Whit4D
Whit4D
Explore posts from servers
DTDrizzle Team
Created by patryk on 2/4/2024 in #help
Troubles during migrations using drizzle and a neon serverless database
Alternatively, remove the sql constant and just place the neon call inside the drizzle call, like:
import { neon } from '@neondatabase/serverless'
import { drizzle } from 'drizzle-orm/neon-http'

const db = drizzle(neon(process.env.DRIZZLE_DATABASE_URL!))
import { neon } from '@neondatabase/serverless'
import { drizzle } from 'drizzle-orm/neon-http'

const db = drizzle(neon(process.env.DRIZZLE_DATABASE_URL!))
6 replies
DTDrizzle Team
Created by patryk on 2/4/2024 in #help
Troubles during migrations using drizzle and a neon serverless database
Try adding a type like:
import { neon, NeonQueryFunction } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-http';

const sql : NeonQueryFunction<boolean, boolean> = neon(process.env.DRIZZLE_DATABASE_URL!);
const db = drizzle(sql);
import { neon, NeonQueryFunction } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-http';

const sql : NeonQueryFunction<boolean, boolean> = neon(process.env.DRIZZLE_DATABASE_URL!);
const db = drizzle(sql);
6 replies
SSolidJS
Created by Whit4D on 9/9/2023 in #support
Astro + resolvePackageJsonExports: false
3 replies
SSolidJS
Created by Whit4D on 9/9/2023 in #support
Astro + resolvePackageJsonExports: false
3 replies