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

Method _getCurrentPrimaryKey

lib/model.ts:954–957  ·  view source on GitHub ↗

Return the instance current value for its primary key.

()

Source from the content-addressed store, hash-verified

952
953 /** Return the instance current value for its primary key. */
954 private _getCurrentPrimaryKey() {
955 const model = this.constructor as ModelSchema;
956 return (this as any)[model.getComputedPrimaryKey()] as string;
957 }
958
959 /** Create a new record for the model.
960 *

Callers 2

updateMethod · 0.95
deleteMethod · 0.95

Calls 1

getComputedPrimaryKeyMethod · 0.80

Tested by

no test coverage detected