update

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distinct

func Distinct(column string) ([]string, error)

Distinct returns a unique list of values from the table column.

func Platforms

func Platforms(platforms *[]string)

func Sections

func Sections(sections *[]string)

Types

type Column added in v1.10.0

type Column string
const (
	Filename Column = "files.filename"
	GroupBy  Column = "files.group_brand_by"
	GroupFor Column = "files.group_brand_for"
)

func (Column) NamedTitles added in v1.10.0

func (col Column) NamedTitles() error

NamedTitles remove record titles that match the filename.

type Update

type Update struct {
	Query string
	Args  []any
}

Update row values based on conditions.

func (Update) Execute

func (u Update) Execute() (int64, error)

Execute Query and Args to update the database and returns the total number of changes.

Jump to

Keyboard shortcuts

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