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

Function getNullJobState

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

Source from the content-addressed store, hash-verified

311}
312
313func getNullJobState(db *sql.DB) (state NullJobState, err error) {
314 err = db.QueryRow(`SELECT status FROM job WHERE id = ?`, hardcodedProjectID).Scan(&state)
315 return
316}
317
318func setJobState(db *sql.DB, state interface{}) error {
319 _, err := db.Exec(`Update job SET status = ? WHERE id = ?`, state, hardcodedProjectID)

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…