object_attributes

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) GetObjectAttributeByID

func (db *DB) GetObjectAttributeByID(
	ctx context.Context, objectAttributeID entry.ObjectAttributeID,
) (*entry.ObjectAttribute, error)

func (*DB) GetObjectAttributes

func (db *DB) GetObjectAttributes(ctx context.Context) ([]*entry.ObjectAttribute, error)

func (*DB) GetObjectAttributesByAttributeID

func (db *DB) GetObjectAttributesByAttributeID(
	ctx context.Context, attributeID entry.AttributeID,
) ([]*entry.ObjectAttribute, error)

func (*DB) GetObjectAttributesByObjectID

func (db *DB) GetObjectAttributesByObjectID(ctx context.Context, objectID umid.UMID) ([]*entry.ObjectAttribute, error)

func (*DB) RemoveObjectAttributeByID

func (db *DB) RemoveObjectAttributeByID(
	ctx context.Context, objectAttributeID entry.ObjectAttributeID,
) error

func (*DB) RemoveObjectAttributesByAttributeID

func (db *DB) RemoveObjectAttributesByAttributeID(ctx context.Context, attributeID entry.AttributeID) error

func (*DB) RemoveObjectAttributesByName

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

func (*DB) RemoveObjectAttributesByNameAndObjectID

func (db *DB) RemoveObjectAttributesByNameAndObjectID(ctx context.Context, name string, objectID umid.UMID) error

func (*DB) RemoveObjectAttributesByNames

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

func (*DB) RemoveObjectAttributesByNamesAndObjectID

func (db *DB) RemoveObjectAttributesByNamesAndObjectID(
	ctx context.Context, names []string, objectID umid.UMID,
) error

func (*DB) RemoveObjectAttributesByObjectID

func (db *DB) RemoveObjectAttributesByObjectID(ctx context.Context, objectID umid.UMID) error

func (*DB) RemoveObjectAttributesByPluginID

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

func (*DB) RemoveObjectAttributesByPluginIDAndObjectID

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

func (*DB) UpdateObjectAttributeOptions

func (db *DB) UpdateObjectAttributeOptions(
	ctx context.Context, objectAttributeID entry.ObjectAttributeID, options *entry.AttributeOptions,
) error

func (*DB) UpdateObjectAttributeValue

func (db *DB) UpdateObjectAttributeValue(
	ctx context.Context, objectAttributeID entry.ObjectAttributeID, value *entry.AttributeValue,
) error

func (*DB) UpsertObjectAttribute

func (db *DB) UpsertObjectAttribute(ctx context.Context, objectAttribute *entry.ObjectAttribute) error

func (*DB) UpsertObjectAttributes

func (db *DB) UpsertObjectAttributes(ctx context.Context, objectAttributes []*entry.ObjectAttribute) error

Jump to

Keyboard shortcuts

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