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

Function getSchemaKey

pkg/cli/migrate/migrate.go:70–80  ·  view source on GitHub ↗
(mode int)

Source from the content-addressed store, hash-verified

68}
69
70func getSchemaKey(mode int) (string, error) {
71 if mode == LocalMode {
72 return consts.SystemSchema, nil
73 }
74
75 if mode == RemoteMode {
76 return consts.SystemRemoteSchema, nil
77 }
78
79 return "", errors.Errorf("unsupported migration type '%d'", mode)
80}
81
82func getSchema(ctx context.DnoteCtx, schemaKey string) (int, error) {
83 var ret int

Callers 1

RunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected