MCPcopy
hub / github.com/chartdb/chartdb / getDiffMapKey

Function getDiffMapKey

src/lib/domain/diff/diff-check/diff-check.ts:32–44  ·  view source on GitHub ↗
({
    diffObject,
    objectId,
    attribute,
}: {
    diffObject: DiffObject;
    objectId: string;
    attribute?: string;
})

Source from the content-addressed store, hash-verified

30import type { DatabaseType } from '../../database-type';
31
32export function getDiffMapKey({
33 diffObject,
34 objectId,
35 attribute,
36}: {
37 diffObject: DiffObject;
38 objectId: string;
39 attribute?: string;
40}): string {
41 return attribute
42 ? `${diffObject}-${attribute}-${objectId}`
43 : `${diffObject}-${objectId}`;
44}
45
46const isOneOfDefined = (
47 ...values: (string | number | boolean | undefined | null)[]

Callers 11

DiffProviderFunction · 0.90
compareTablesFunction · 0.85
compareFieldsFunction · 0.85
compareFieldPropertiesFunction · 0.85
compareIndexesFunction · 0.85
compareIndexPropertiesFunction · 0.85
compareCheckConstraintsFunction · 0.85
compareRelationshipsFunction · 0.85
compareAreasFunction · 0.85
compareNotesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected