Discover Packages
github.com/Defacto2/df2
pkg
database
internal
update
package
Version:
v1.11.11
Opens a new window with list of versions in this module.
Published: Feb 13, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package update handles edits and updates to the database records.
View Source
var (
ErrColumn = errors .New ("column value must be either platform or section")
ErrDB = errors .New ("database handle pointer cannot be nil")
ErrPointer = errors .New ("pointer value cannot be nil")
)
Distinct returns a unique list of values from the table column.
Column must be either platform or section.
type Column ¶
added in
v1.10.0
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
NamedTitles remove record titles that match the filename.
type Update struct {
Query string
Args []any
}
Update row values based on conditions.
Execute Query and Args to update the database and returns the total number of changes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.