Documentation ¶
Index ¶
- type Scope
- func (s Scope) Add(ctx domain.RequestContext, a attachment.Attachment) (err error)
- func (s Scope) Delete(ctx domain.RequestContext, id string) (rows int64, err error)
- func (s Scope) GetAttachment(ctx domain.RequestContext, orgID, attachmentID string) (a attachment.Attachment, err error)
- func (s Scope) GetAttachments(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)
- func (s Scope) GetAttachmentsWithData(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
Scope provides data access to MySQL.
func (Scope) Add ¶
func (s Scope) Add(ctx domain.RequestContext, a attachment.Attachment) (err error)
Add inserts the given record into the database attachement table.
func (Scope) GetAttachment ¶
func (s Scope) GetAttachment(ctx domain.RequestContext, orgID, attachmentID string) (a attachment.Attachment, err error)
GetAttachment returns the database attachment record specified by the parameters.
func (Scope) GetAttachments ¶
func (s Scope) GetAttachments(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)
GetAttachments returns a slice containing the attachement records (excluding their data) for document docID, ordered by filename.
func (Scope) GetAttachmentsWithData ¶
func (s Scope) GetAttachmentsWithData(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)
GetAttachmentsWithData returns a slice containing the attachement records (including their data) for document docID, ordered by filename.
Click to show internal directories.
Click to hide internal directories.