JS API for generating CREATE TABLE sql?
I saw a message that a JS API is coming for drizzle-kit, which will be great. In the meantime is there an existing method to generate the
CREATE TABLE
sql from table schemas?
My use-case: I'm writing tests, for which I would normally use an in-memory sqlite database, but I need to generate the tables in the DB as I would with drizzle-kit push
.2 Replies
if you import your schemas, then use migrate to create the tables in the memory db.
something along those lines..
Ah, thanks @gerhardcit that works.