MCPcopy
hub / github.com/eveningkid/denodb / getComputedPrimaryKey

Method getComputedPrimaryKey

lib/model.ts:196–202  ·  view source on GitHub ↗

Return the model computed primary key.

()

Source from the content-addressed store, hash-verified

194
195 /** Return the model computed primary key. */
196 static getComputedPrimaryKey(): string {
197 if (!this._primaryKey) {
198 this._primaryKey = this._findPrimaryKey();
199 }
200
201 return this._primaryKey;
202 }
203
204 /** Return the field type of the primary key. */
205 static getComputedPrimaryType(): FieldTypeString {

Callers 8

findMethod · 0.95
deleteByIdMethod · 0.95
hasOneMethod · 0.95
hasManyMethod · 0.80
_getCurrentPrimaryKeyMethod · 0.80
updateMethod · 0.80
addFieldToSchemaFunction · 0.80

Calls 1

_findPrimaryKeyMethod · 0.95

Tested by

no test coverage detected