constraintName
Function: constraintName()
constraintName(
prefix,table,columns):string
Defined in: packages/sql-schema/src/columns.ts:208
Name of a constraint or index: <prefix>_<table>_<columns>, cut with a hash suffix to fit
MAX_IDENTIFIER_LENGTH, so two long names never collide after truncation
Parameters
prefix
string
pk, fk, idx, uq
table
string
the table
columns
string[]
the columns
Returns
string
the name