MCPcopy Create free account
hub / github.com/Facets-cloud/flow / GetWorkdir

Function GetWorkdir

internal/flowdb/db.go:845–848  ·  view source on GitHub ↗
(db *sql.DB, path string)

Source from the content-addressed store, hash-verified

843}
844
845func GetWorkdir(db *sql.DB, path string) (*Workdir, error) {
846 row := db.QueryRow("SELECT "+WorkdirCols+" FROM workdirs WHERE path = ?", path)
847 return ScanWorkdir(row)
848}
849
850func ListWorkdirs(db *sql.DB) ([]*Workdir, error) {
851 q := "SELECT " + WorkdirCols + " FROM workdirs ORDER BY last_used_at IS NULL, last_used_at DESC, path"

Callers 10

TestE2EFullRoundtripFunction · 0.92
cmdWorkdirScanFunction · 0.92
printTaskMetadataFunction · 0.92
printProjectMetadataFunction · 0.92
printPlaybookMetadataFunction · 0.92
TestCmdWorkdirScanAddFunction · 0.92
TestWorkdirUpsertFunction · 0.85

Calls 1

ScanWorkdirFunction · 0.85

Tested by 6

TestE2EFullRoundtripFunction · 0.74
TestCmdWorkdirScanAddFunction · 0.74
TestWorkdirUpsertFunction · 0.68