MCPcopy Create free account
hub / github.com/gogs/gogs / getAttachmentsByReleaseID

Function getAttachmentsByReleaseID

internal/database/attachment.go:149–152  ·  view source on GitHub ↗
(e Engine, releaseID int64)

Source from the content-addressed store, hash-verified

147}
148
149func getAttachmentsByReleaseID(e Engine, releaseID int64) ([]*Attachment, error) {
150 attachments := make([]*Attachment, 0, 10)
151 return attachments, e.Where("release_id = ?", releaseID).Find(&attachments)
152}
153
154// GetAttachmentsByReleaseID returns all attachments of a release.
155func GetAttachmentsByReleaseID(releaseID int64) ([]*Attachment, error) {

Callers 2

loadAttributesMethod · 0.85

Calls 2

WhereMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected