user_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) GetUserTypes added in v0.2.0

func (db *DB) GetUserTypes(ctx context.Context) ([]*entry.UserType, error)

func (*DB) RemoveUserTypeByID added in v0.2.0

func (db *DB) RemoveUserTypeByID(ctx context.Context, userTypeID umid.UMID) error

func (*DB) RemoveUserTypesByIDs added in v0.2.0

func (db *DB) RemoveUserTypesByIDs(ctx context.Context, userTypeIDs []umid.UMID) error

func (*DB) UpdateUserTypeDescription added in v0.2.0

func (db *DB) UpdateUserTypeDescription(
	ctx context.Context, userTypeID umid.UMID, description string,
) error

func (*DB) UpdateUserTypeName added in v0.2.0

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

func (*DB) UpdateUserTypeOptions added in v0.2.0

func (db *DB) UpdateUserTypeOptions(
	ctx context.Context, userTypeID umid.UMID, options *entry.UserOptions,
) error

func (*DB) UpsertUserType added in v0.2.0

func (db *DB) UpsertUserType(ctx context.Context, userType *entry.UserType) error

func (*DB) UpsertUserTypes added in v0.2.0

func (db *DB) UpsertUserTypes(ctx context.Context, userTypes []*entry.UserType) error

Jump to

Keyboard shortcuts

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