ShiroDev
DTDrizzle Team
•Created by ShiroDev on 1/14/2024 in #help
sqlite DEFAULT is not JSON-encoded
When using
text("...", { mode: "json" })
with .default()
, the default value is not JSON encoded leading to invalid SQL generation by drizzle-kit.
generates:
(should be '""'
instead)
Using an empty array .$type<string[]>().default([])
generates nothing:
(should be '[]'
)4 replies