MCPcopy
hub / github.com/determined-ai/determined / GetAddProjectQuery

Function GetAddProjectQuery

master/test/streamdata/stream_data.go:20–22  ·  view source on GitHub ↗

GetAddProjectQuery constructs a query to create a new project in the db.

(proj model.Project)

Source from the content-addressed store, hash-verified

18
19// GetAddProjectQuery constructs a query to create a new project in the db.
20func GetAddProjectQuery(proj model.Project) ExecutableQuery {
21 return db.Bun().NewInsert().Model(&proj)
22}
23
24// GetUpdateProjectQuery constructs a query to update a project.
25func GetUpdateProjectQuery(proj model.Project) ExecutableQuery {

Callers 4

TestProjectUpdateFunction · 0.92
TestOnlineChangesFunction · 0.92
TestSubscribeByUserIDFunction · 0.92

Calls 2

BunFunction · 0.92
ModelMethod · 0.80

Tested by 4

TestProjectUpdateFunction · 0.74
TestOnlineChangesFunction · 0.74
TestSubscribeByUserIDFunction · 0.74