MCPcopy Create free account
hub / github.com/Make-md/makemd / saveTableSchema

Method saveTableSchema

src/core/spaceManager/spaceManager.ts:218–224  ·  view source on GitHub ↗
(path: string, schemaId: string, saveSchema: (prev: SpaceTableSchema) => SpaceTableSchema)

Source from the content-addressed store, hash-verified

216 }
217
218 public saveTableSchema (path: string, schemaId: string, saveSchema: (prev: SpaceTableSchema) => SpaceTableSchema) {
219
220 return this.adapterForPath(path).saveTableSchema(path, schemaId, saveSchema).then(f => {
221 if (f)
222 return this.superstate.reloadContextByPath(path, { force: true, calculate: true })
223 return f});
224 }
225 public saveTable (path: string, table: SpaceTable, force?: boolean) {
226 return this.adapterForPath(path).saveTable(path, table, force)
227 }

Callers

nothing calls this directly

Calls 3

adapterForPathMethod · 0.95
saveTableSchemaMethod · 0.65
reloadContextByPathMethod · 0.45

Tested by

no test coverage detected