space_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) SpaceTypesGetSpaceTypes

func (db *DB) SpaceTypesGetSpaceTypes(ctx context.Context) ([]*entry.SpaceType, error)

func (*DB) SpaceTypesRemoveSpaceTypeByID

func (db *DB) SpaceTypesRemoveSpaceTypeByID(ctx context.Context, spaceTypeID uuid.UUID) error

func (*DB) SpaceTypesRemoveSpaceTypesByIDs

func (db *DB) SpaceTypesRemoveSpaceTypesByIDs(ctx context.Context, spaceTypeIDs []uuid.UUID) error

func (*DB) SpaceTypesUpdateSpaceTypeCategoryName

func (db *DB) SpaceTypesUpdateSpaceTypeCategoryName(ctx context.Context, spaceTypeID uuid.UUID, categoryName string) error

func (*DB) SpaceTypesUpdateSpaceTypeDescription

func (db *DB) SpaceTypesUpdateSpaceTypeDescription(ctx context.Context, spaceTypeID uuid.UUID, description *string) error

func (*DB) SpaceTypesUpdateSpaceTypeName

func (db *DB) SpaceTypesUpdateSpaceTypeName(ctx context.Context, spaceTypeID uuid.UUID, name string) error

func (*DB) SpaceTypesUpdateSpaceTypeOptions

func (db *DB) SpaceTypesUpdateSpaceTypeOptions(ctx context.Context, spaceTypeID uuid.UUID, options *entry.SpaceOptions) error

func (*DB) SpaceTypesUpsertSpaceType

func (db *DB) SpaceTypesUpsertSpaceType(ctx context.Context, spaceType *entry.SpaceType) error

func (*DB) SpaceTypesUpsertSpaceTypes

func (db *DB) SpaceTypesUpsertSpaceTypes(ctx context.Context, spaceTypes []*entry.SpaceType) error

Jump to

Keyboard shortcuts

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