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

Method getComputedPrimaryType

lib/model.ts:205–211  ·  view source on GitHub ↗

Return the field type of the primary key.

()

Source from the content-addressed store, hash-verified

203
204 /** Return the field type of the primary key. */
205 static getComputedPrimaryType(): FieldTypeString {
206 const field = this._findPrimaryField();
207
208 return typeof field.type === "object"
209 ? (field.type as any).type
210 : field.type;
211 }
212
213 /** Return the field properties of the primary key */
214 static getComputedPrimaryProps(): FieldProps {

Callers 1

addFieldToSchemaFunction · 0.80

Calls 1

_findPrimaryFieldMethod · 0.95

Tested by

no test coverage detected