MCPcopy Create free account
hub / github.com/abice/go-enum / getJobState

Function getJobState

example/sql_str_enum_test.go:308–311  ·  view source on GitHub ↗
(db *sql.DB)

Source from the content-addressed store, hash-verified

306}
307
308func getJobState(db *sql.DB) (state JobState, err error) {
309 err = db.QueryRow(`SELECT status FROM job WHERE id = ?`, hardcodedProjectID).Scan(&state)
310 return
311}
312
313func getNullJobState(db *sql.DB) (state NullJobState, err error) {
314 err = db.QueryRow(`SELECT status FROM job WHERE id = ?`, hardcodedProjectID).Scan(&state)

Callers 1

TestExampleSQLStrOnlyFunction · 0.85

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…