attribute_types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(conn *pgxpool.Pool, commonDB database.CommonDB) *DB

func (*DB) AttributeTypesGetAttributeTypes

func (db *DB) AttributeTypesGetAttributeTypes(ctx context.Context) ([]*entry.AttributeType, error)

func (*DB) AttributeTypesRemoveAttributeTypeByID

func (db *DB) AttributeTypesRemoveAttributeTypeByID(ctx context.Context, attributeTypeID entry.AttributeTypeID) error

func (*DB) AttributeTypesRemoveAttributeTypeByName

func (db *DB) AttributeTypesRemoveAttributeTypeByName(ctx context.Context, name string) error

func (*DB) AttributeTypesRemoveAttributeTypesByIDs

func (db *DB) AttributeTypesRemoveAttributeTypesByIDs(ctx context.Context, attributeTypeIDs []entry.AttributeTypeID) error

func (*DB) AttributeTypesRemoveAttributeTypesByNames

func (db *DB) AttributeTypesRemoveAttributeTypesByNames(ctx context.Context, names []string) error

func (*DB) AttributeTypesRemoveAttributeTypesByPluginID

func (db *DB) AttributeTypesRemoveAttributeTypesByPluginID(ctx context.Context, pluginID uuid.UUID) error

func (*DB) AttributeTypesUpdateAttributeTypeDescription

func (db *DB) AttributeTypesUpdateAttributeTypeDescription(
	ctx context.Context, attributeTypeID entry.AttributeTypeID, description *string,
) error

func (*DB) AttributeTypesUpdateAttributeTypeName

func (db *DB) AttributeTypesUpdateAttributeTypeName(
	ctx context.Context, attributeTypeID entry.AttributeTypeID, name string,
) error

func (*DB) AttributeTypesUpdateAttributeTypeOptions

func (db *DB) AttributeTypesUpdateAttributeTypeOptions(
	ctx context.Context, attributeTypeID entry.AttributeTypeID, options *entry.AttributeOptions,
) error

func (*DB) AttributeTypesUpsertAttributeType

func (db *DB) AttributeTypesUpsertAttributeType(ctx context.Context, attributeType *entry.AttributeType) error

func (*DB) AttributeTypesUpsertAttributeTypes

func (db *DB) AttributeTypesUpsertAttributeTypes(ctx context.Context, attributeTypes []*entry.AttributeType) error

Jump to

Keyboard shortcuts

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