structuredvalue

package
v2.0.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalStructuredValueCount

func GetTotalStructuredValueCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertStructuredValue

func InsertStructuredValue(dbConnPgx utils.PgxIface, structuredValue *StructuredValue) (int, error)

func InsertStructuredValues

func InsertStructuredValues(dbConnPgx utils.PgxIface, structuredValues []StructuredValue) error

func RemoveStructuredValue

func RemoveStructuredValue(dbConnPgx utils.PgxIface, structuredValueID *int) error

func UpdateStructuredValue

func UpdateStructuredValue(dbConnPgx utils.PgxIface, structuredValue *StructuredValue) error

Types

type StructuredValue

type StructuredValue struct {
	ID                    *int      `json:"id" db:"id"`                                           //1
	UUID                  string    `json:"uuid" db:"uuid"`                                       //2
	Name                  string    `json:"name" db:"name"`                                       //3
	AlternateName         string    `json:"alternateName" db:"alternate_name"`                    //4
	StructuredValueTypeID *int      `json:"structuredValueTypeId"  db:"structured_value_type_id"` //5
	CreatedBy             string    `json:"createdBy" db:"created_by"`                            //6
	CreatedAt             time.Time `json:"createdAt" db:"created_at"`                            //7
	UpdatedBy             string    `json:"updatedBy" db:"updated_by"`                            //8
	UpdatedAt             time.Time `json:"updatedAt" db:"updated_at"`                            //9
}

StructuredValue

func GetStructuredValue

func GetStructuredValue(dbConnPgx utils.PgxIface, structuredValueID *int) (*StructuredValue, error)

func GetStructuredValueByStructuredValueTypeIDList

func GetStructuredValueByStructuredValueTypeIDList(dbConnPgx utils.PgxIface, structuredValueTypeID *int) ([]StructuredValue, error)

func GetStructuredValueList

func GetStructuredValueList(dbConnPgx utils.PgxIface, ids []int) ([]StructuredValue, error)

func GetStructuredValueListByPagination

func GetStructuredValueListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]StructuredValue, error)

Jump to

Keyboard shortcuts

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