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: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) Get

func (s Scope) Get(area, path string) (value string, err error)

Get fetches a configuration JSON element from the config table.

func (Scope) GetUser

func (s Scope) GetUser(orgID, userID, area, path string) (value string, err error)

GetUser fetches a configuration JSON element from the userconfig table for a given orgid/userid combination. Errors return the empty string. A blank path returns the whole JSON object, as JSON.

func (Scope) Set

func (s Scope) Set(area, json string) (err error)

Set writes a configuration JSON element to the config table.

func (Scope) SetUser

func (s Scope) SetUser(orgID, userID, area, json string) (err error)

SetUser writes a configuration JSON element to the userconfig table for the current user.

Jump to

Keyboard shortcuts

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