mysql

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: AGPL-3.0 Imports: 9 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, b block.Block) (err error)

Add saves reusable content block.

func (Scope) DecrementUsage

func (s Scope) DecrementUsage(ctx domain.RequestContext, id string) (err error)

DecrementUsage decrements usage counter for content block.

func (Scope) Delete

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

Delete removes reusable content block from database.

func (Scope) Get

func (s Scope) Get(ctx domain.RequestContext, id string) (b block.Block, err error)

Get returns requested reusable content block.

func (Scope) GetBySpace

func (s Scope) GetBySpace(ctx domain.RequestContext, spaceID string) (b []block.Block, err error)

GetBySpace returns all reusable content scoped to given space.

func (Scope) IncrementUsage

func (s Scope) IncrementUsage(ctx domain.RequestContext, id string) (err error)

IncrementUsage increments usage counter for content block.

func (Scope) RemoveReference

func (s Scope) RemoveReference(ctx domain.RequestContext, id string) (err error)

RemoveReference clears page.blockid for given blockID.

func (Scope) Update

func (s Scope) Update(ctx domain.RequestContext, b block.Block) (err error)

Update updates existing reusable content block item.

Jump to

Keyboard shortcuts

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