MySQL column type: "Generated"?
Does drizzle support defining generated columns? https://planetscale.com/courses/mysql-for-developers/schema/generated-columns
Something like a columnType
sql
If not, is it dangerous to send MySQL a custom DDL statement to Add a generated column?
The schema wouldn't not be aware of it, but maybe I could still reference the generated column in sql
commands.
Thank you2 Replies
not yet
https://github.com/drizzle-team/drizzle-orm/issues/261
you can currently add it to the migration manually
Is there workaround in the meantime to let Drizzle know a column does not need to be specified for writes because it is going to be generated in the db?