MCPcopy Index your code
hub / github.com/coder/coder / parseDBFile

Function parseDBFile

scripts/dbgen/main.go:316–329  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

314}
315
316func parseDBFile(filename string) (*dst.File, error) {
317 localPath, err := localFilePath()
318 if err != nil {
319 return nil, err
320 }
321
322 querierPath := filepath.Join(localPath, "..", "..", "..", "coderd", "database", filename)
323 querierData, err := os.ReadFile(querierPath)
324 if err != nil {
325 return nil, xerrors.Errorf("read %s: %w", filename, err)
326 }
327 f, err := decorator.Parse(querierData)
328 return f, err
329}
330
331func loadExternalReceiverMethods(
332 dirPath string,

Callers 1

readQuerierFunctionsFunction · 0.85

Calls 4

localFilePathFunction · 0.85
ReadFileMethod · 0.65
ParseMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected