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