database

package
v0.0.0-...-bebb8e2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyLatestDBMigrations

func ApplyLatestDBMigrations(db *sql.DB) error

func ExportTableToJson

func ExportTableToJson(db *sql.DB, exportDir string, tableName string) error

func FetchProperties

func FetchProperties(db *sql.DB, keyFilter string, modifiedOnly bool, selectedTags []string) ([]models.PropertyValue, error)

Fetch rows from the Property table depending on the specific filter setting arguments

func FetchPropertyTagIDs

func FetchPropertyTagIDs(db *sql.DB, propertyID int) ([]int, error)

Fetch all tags for a property

func FetchTags

func FetchTags(db *sql.DB) ([]models.Tag, error)

Fetch all rows from the tags table

func GetPropertyByID

func GetPropertyByID(db *sql.DB, id int) (models.Property, error)

func GetPropertyByKey

func GetPropertyByKey(db *sql.DB, key string) (*models.Property, error)

func InsertProperty

func InsertProperty(db *sql.DB, key, description, defaultValue, modifiedValue string, tagIDs []string) error

func UpdateProperty

func UpdateProperty(db *sql.DB, id int, key, description, defaultValue, modifiedValue string, tagIDs []string) error

func UpdatePropertyCalculatedValue

func UpdatePropertyCalculatedValue(db *sql.DB, id int, calculatedValue string) error

func UpdatePropertyTags

func UpdatePropertyTags(db *sql.DB, propertyID int, tagIDs []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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