mysql

package
v1.65.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope struct {
	Runtime *env.Runtime
}

Scope provides data access to MySQL.

func (Scope) Add

func (s Scope) Add(ctx domain.RequestContext, l link.Link) (err error)

Add inserts wiki-link into the store. These links exist when content references another document or content.

func (s Scope) DeleteLink(ctx domain.RequestContext, id string) (rows int64, err error)

DeleteLink removes saved link from the store.

func (s Scope) DeleteSourceDocumentLinks(ctx domain.RequestContext, documentID string) (rows int64, err error)

DeleteSourceDocumentLinks removes saved links for given document.

func (s Scope) DeleteSourcePageLinks(ctx domain.RequestContext, pageID string) (rows int64, err error)

DeleteSourcePageLinks removes saved links for given source.

func (s Scope) GetDocumentOutboundLinks(ctx domain.RequestContext, documentID string) (links []link.Link, err error)

GetDocumentOutboundLinks returns outbound links for specified document.

func (s Scope) GetPageLinks(ctx domain.RequestContext, documentID, pageID string) (links []link.Link, err error)

GetPageLinks returns outbound links for specified page in document.

func (s Scope) MarkOrphanAttachmentLink(ctx domain.RequestContext, attachmentID string) (err error)

MarkOrphanAttachmentLink marks all link records referencing specified attachment.

func (s Scope) MarkOrphanDocumentLink(ctx domain.RequestContext, documentID string) (err error)

MarkOrphanDocumentLink marks all link records referencing specified document.

func (s Scope) MarkOrphanPageLink(ctx domain.RequestContext, pageID string) (err error)

MarkOrphanPageLink marks all link records referencing specified page.

func (Scope) SearchCandidates

func (s Scope) SearchCandidates(ctx domain.RequestContext, keywords string) (docs []link.Candidate,
	pages []link.Candidate, attachments []link.Candidate, err error)

SearchCandidates returns matching documents, sections and attachments using keywords.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL