loczek
loczek
DTDrizzle Team
Created by Kamen on 11/19/2023 in #help
VSCode - how force auto-imports from 'drizzle-orm/pg-core' instead of 'drizzle-orm/mysql-core'
Yep, the same setting as you provided works for me
4 replies
DTDrizzle Team
Created by kilroy on 11/19/2023 in #help
DB type error
import * as users from "./models/users";
import * as accounts from "./models/accounts";

export const db = drizzle(pool, {
schema: {
...users,
...accounts,
},
});
import * as users from "./models/users";
import * as accounts from "./models/accounts";

export const db = drizzle(pool, {
schema: {
...users,
...accounts,
},
});
I don't think there is a better way to do it than this if you have multiple schema files
4 replies
DTDrizzle Team
Created by Kamen on 11/19/2023 in #help
VSCode - how force auto-imports from 'drizzle-orm/pg-core' instead of 'drizzle-orm/mysql-core'
be sure you restart your typescript server and it should work 👍
4 replies