DT
Drizzle Team•2y ago
ysm

MySQL Standalone queryBuilder?

https://discord.com/channels/1043890932593987624/1052239146699210863/1085708651374837810 Where should I import MySQL Standalone queryBuilder? pg looks like:
import { queryBuilder as qb } from 'drizzle-orm/pg-core';
import { queryBuilder as qb } from 'drizzle-orm/pg-core';
but mysql:
import { queryBuilder as qb } from 'drizzle-orm/mysql-core';
import { queryBuilder as qb } from 'drizzle-orm/mysql-core';
doesn't work.
6 Replies
Dan
Dan•2y ago
Oof, forgot to re-export it in MySQL. Currently you can import from drizzle-orm/mysql-core/query-builders. Will be fixed in the next release
ysm
ysmOP•2y ago
Thanks! btw, Querybuilder doesn't support insert and delete statement? only support select?
Dan
Dan•2y ago
Oh yeah. Missed that one. The query builder was initially built for views support, so I implemented select statements and forgot about the rest 😅 The rest will be implemented shortly
ysm
ysmOP•2y ago
got it, Thanks again! Hi @bloberenober Is it possible to insert and delete in the latest version?
Dan
Dan•2y ago
Not yet
ysm
ysmOP•2y ago
Thanks
Want results from more Discord servers?
Add your server