ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Teamโ€ข2y agoโ€ข
2 replies
Arthur

Error with drizzle (sql)

Hey guys,
I created a index.ts file to set up neon and drizzle

import { neon, neonConfig } from '@Neondatabase/serverless';
import {drizzle} from "drizzle-orm/neon-http";

neonConfig.fetchConnectionCache = true

if(!process.env.DATABASE_URL) {
throw new Error ('database url not found'); }

const sql = neon(process.env.DATABASE_URL);
export const db = drizzle(sql);

But i have an error on sql in drizzle(sql) and can't figure out the solution.

"Argument of type 'NeonQueryFunction<false, false>' is not assignable to parameter of type 'NeonQueryFunction<boolean, boolean>'.
Types of property 'transaction' are incompatible.
Type '<ArrayModeOverride extends boolean = false, FullResultsOverride extends boolean = false>(queriesOrFn: NeonQueryPromise<false, false, any>[] | ((sql: NeonQueryFunctionInTransaction<ArrayModeOverride, FullResultsOverride>) => NeonQueryInTransaction[]), opts?: HTTPTransactionOptions<...> | undefined) => Promise<...>' is not assignable to type '<ArrayModeOverride extends boolean = boolean, FullResultsOverride extends boolean = boolean>(queriesOrFn: NeonQueryPromise<boolean, boolean, any>[] | ((sql: NeonQueryFunctionInTransaction<ArrayModeOverride, FullResultsOverride>) => NeonQueryInTransaction[]), opts?: HTTPTransactionOptions<...> | undefined) => Promise...'. "

Thanks for the support ๐Ÿ™‚
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SQL_PARSE_ERROR with Turso + Drizzle
Drizzle TeamDTDrizzle Team / help
3y ago
Drizzle kit SQL error
Drizzle TeamDTDrizzle Team / help
3y ago
SQLITE3 with drizzle?
Drizzle TeamDTDrizzle Team / help
2y ago
Error with Expo Sqlite + Drizzle
Drizzle TeamDTDrizzle Team / help
12mo ago