project_values

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectValues

type ProjectValues struct {
	// contains filtered or unexported fields
}

ProjectValues is repository struct.

func New

func New(db *sql.DB) *ProjectValues

New returns a new ProjectValues.

func (*ProjectValues) Create

func (p *ProjectValues) Create(tx *sql.Tx, projectID int, key, value string) (int, error)

Create is create method for a ProjectValues.

func (*ProjectValues) DeleteByProject

func (p *ProjectValues) DeleteByProject(tx *sql.Tx, projectID int) error

DeleteByProject deletes all values related a project.

func (*ProjectValues) GetByProject

func (p *ProjectValues) GetByProject(projectID int) ([]*values.OverrideValue, error)

GetByProject gets all values related a project.

Jump to

Keyboard shortcuts

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