tonyx
tonyx
DTDrizzle Team
Created by psm on 9/27/2023 in #help
How to set a default value for column based on another column?
@kane were you able to find a fix for it?
19 replies
DTDrizzle Team
Created by psm on 9/27/2023 in #help
How to set a default value for column based on another column?
That doesn't quite seem to work though. The generated sql looks like
"full_name" "VARCHAR(100) GENERATED ALWAYS AS (concat(first_name, '_', last name)) STORED"
"full_name" "VARCHAR(100) GENERATED ALWAYS AS (concat(first_name, '_', last name)) STORED"
note the extra "" quotes. Is there a way to unquote it?
19 replies
DTDrizzle Team
Created by mcgrealife on 6/1/2023 in #help
MySQL column type: "Generated"?
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?
3 replies
DTDrizzle Team
Created by tonyx on 1/31/2024 in #help
How do you get create table statement given a specific pgTable programmatically?
Seems that this was an issue before, https://github.com/drizzle-team/drizzle-orm/discussions/331 but no solution yet
2 replies