Imam
Imam
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
now it is working, im changing using postgres-js over node-postgres, but what the differences between these, i don't really understand🤔
import 'dotenv/config';

import { drizzle } from 'drizzle-orm/postgres-js';
import * as schema from './schema';

export const db = drizzle(process.env.DATABASE_URL!, {
casing: 'snake_case',
schema,
});

export * from 'drizzle-orm';
import 'dotenv/config';

import { drizzle } from 'drizzle-orm/postgres-js';
import * as schema from './schema';

export const db = drizzle(process.env.DATABASE_URL!, {
casing: 'snake_case',
schema,
});

export * from 'drizzle-orm';
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
i was using mysql with express it is just working fine, now im trying hono with postgres got this error
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
here is my drizzle client code:
import 'dotenv/config';

import { drizzle } from 'drizzle-orm/node-postgres';
import * as schema from './schema';

export const db = drizzle(process.env.DATABASE_URL!, {
casing: 'snake_case',
schema,
});

export * from 'drizzle-orm';
import 'dotenv/config';

import { drizzle } from 'drizzle-orm/node-postgres';
import * as schema from './schema';

export const db = drizzle(process.env.DATABASE_URL!, {
casing: 'snake_case',
schema,
});

export * from 'drizzle-orm';
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
how you fix it?
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
yes im using pg
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
i know it is working fine when im using express instead of hono
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
im using hono with node js, what are you using? @acronie
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
@美味的小圓 @acronie sorry for tagging you
25 replies
DTDrizzle Team
Created by acronie on 11/16/2024 in #help
`TypeError: Cannot read properties of undefined (reading 'query')`
is it fixed?
25 replies