attribute_types

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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) GetAttributeTypes added in v0.2.0

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

func (*DB) RemoveAttributeTypeByID added in v0.2.0

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

func (*DB) RemoveAttributeTypesByIDs added in v0.2.0

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

func (*DB) RemoveAttributeTypesByName added in v0.4.0

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

func (*DB) RemoveAttributeTypesByNames added in v0.2.0

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

func (*DB) RemoveAttributeTypesByPluginID added in v0.2.0

func (db *DB) RemoveAttributeTypesByPluginID(ctx context.Context, pluginID umid.UMID) error

func (*DB) UpdateAttributeTypeDescription added in v0.2.0

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

func (*DB) UpdateAttributeTypeName added in v0.2.0

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

func (*DB) UpdateAttributeTypeOptions added in v0.2.0

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

func (*DB) UpsertAttributeType added in v0.2.0

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

func (*DB) UpsertAttributeTypes added in v0.2.0

func (db *DB) UpsertAttributeTypes(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