MCPcopy Create free account
hub / github.com/apitable/apitable / getDsFields

Method getDsFields

packages/core/src/cache_manager/cache.ts:79–89  ·  view source on GitHub ↗
(dsId: string)

Source from the content-addressed store, hash-verified

77 }
78
79 private getDsFields(dsId: string) {
80 const ds = this.getDsCache(dsId);
81 if (!ds) {
82 return null;
83 }
84 const fields = [] as string[];
85 for (const [key] of ds.cellValues) {
86 fields.push(key);
87 }
88 return fields;
89 }
90
91 addCellCache(dsId: string, fieldId: string, recordId: string, value: ICellValueData) {
92 // Check if the table cache exists

Callers 1

Calls 2

getDsCacheMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected