goodboy04289
goodboy04289
DTDrizzle Team
Created by goodboy04289 on 2/12/2024 in #help
customType generate type with double quotes
any solution for this?
export const identity = (name: string) => customType<{
data: number
notNull: true
default: true
}>({
dataType() {
return 'INTEGER GENERATED ALWAYS AS IDENTITY'
},
})(name)
export const identity = (name: string) => customType<{
data: number
notNull: true
default: true
}>({
dataType() {
return 'INTEGER GENERATED ALWAYS AS IDENTITY'
},
})(name)
generate this code:
"id" "INTEGER GENERATED ALWAYS AS IDENTITY" PRIMARY KEY NOT NULL,
"id" "INTEGER GENERATED ALWAYS AS IDENTITY" PRIMARY KEY NOT NULL,
2 replies