MCPcopy Index your code
hub / github.com/dnote/dnote / getSchemaPath

Function getSchemaPath

pkg/cli/migrate/legacy.go:222–224  ·  view source on GitHub ↗

getSchemaPath returns the path to the file containing schema info

(ctx context.DnoteCtx)

Source from the content-addressed store, hash-verified

220
221// getSchemaPath returns the path to the file containing schema info
222func getSchemaPath(ctx context.DnoteCtx) string {
223 return fmt.Sprintf("%s/%s", ctx.Paths.LegacyDnote, schemaFilename)
224}
225
226func readSchema(ctx context.DnoteCtx) (schema, error) {
227 var ret schema

Callers 3

LegacyFunction · 0.85
readSchemaFunction · 0.85
writeSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected