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

Function setJobState

example/sql_str_enum_test.go:318–321  ·  view source on GitHub ↗
(db *sql.DB, state interface{})

Source from the content-addressed store, hash-verified

316}
317
318func setJobState(db *sql.DB, state interface{}) error {
319 _, err := db.Exec(`Update job SET status = ? WHERE id = ?`, state, hardcodedProjectID)
320 return err
321}
322
323func TestSQLStrExtras(t *testing.T) {
324 assert.Equal(t, "JobState(22)", JobState(22).String(), "String value is not correct")

Callers 1

TestExampleSQLStrOnlyFunction · 0.85

Calls 1

ExecMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…