postgres

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateTable = []func(db *Pg) error{}

Functions

This section is empty.

Types

type Pg

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

func New

func New(ctx context.Context, wg *sync.WaitGroup, config configuration.Config) (pg *Pg, err error)

func (*Pg) CountVariables

func (this *Pg) CountVariables(userId string, query model.VariablesQueryOptions) (result model.Count, err error)

func (*Pg) DeleteVariable

func (this *Pg) DeleteVariable(userId string, key string) error

func (*Pg) DeleteVariablesOfProcessDefinition

func (this *Pg) DeleteVariablesOfProcessDefinition(definitionId string) error

func (*Pg) DeleteVariablesOfProcessInstance

func (this *Pg) DeleteVariablesOfProcessInstance(instanceId string) error

func (*Pg) GetVariable

func (this *Pg) GetVariable(userId string, key string) (result model.VariableWithUser, err error)

func (*Pg) ListVariables

func (this *Pg) ListVariables(userId string, query model.VariablesQueryOptions) (result []model.VariableWithUnixTimestamp, err error)

func (*Pg) SetVariable

func (this *Pg) SetVariable(variable model.VariableWithUser) error

Jump to

Keyboard shortcuts

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