Resolve the primary-key columns of a schema at runtime.
Composite primary keys (declared via .hasPrimaryKey([...]) on the
object schema) take precedence over single-column primary keys. The
columns argument to .hasPrimaryKey() may contain either property keys
or SQL column names — both forms are accepted and normalised.
Returns { propertyKeys: [], columnNames: [] } when no primary key is
declared.
Resolve the primary-key columns of a schema at runtime.
Composite primary keys (declared via
.hasPrimaryKey([...])on the object schema) take precedence over single-column primary keys. Thecolumnsargument to.hasPrimaryKey()may contain either property keys or SQL column names — both forms are accepted and normalised.Returns
{ propertyKeys: [], columnNames: [] }when no primary key is declared.