postgres

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUsersQ

func NewUsersQ(db *pgdb.DB) data.Users

Types

type UsersQ

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

func (UsersQ) CountWithGroupedModules

func (q UsersQ) CountWithGroupedModules(module *string) data.Users

func (UsersQ) Delete

func (q UsersQ) Delete() error

func (UsersQ) FilterByModuleIds

func (q UsersQ) FilterByModuleIds(moduleIds ...string) data.Users

func (UsersQ) FilterByModules

func (q UsersQ) FilterByModules(modules ...string) data.Users

func (UsersQ) Get

func (q UsersQ) Get() (*data.User, error)

func (UsersQ) GetTotalCount

func (q UsersQ) GetTotalCount() (int64, error)

func (UsersQ) New

func (q UsersQ) New() data.Users

func (UsersQ) Page

func (q UsersQ) Page(pageParams pgdb.OffsetPageParams, sortParams data.SortParams) data.Users

func (UsersQ) SearchBy

func (q UsersQ) SearchBy(search string) data.Users

func (UsersQ) Select

func (q UsersQ) Select() ([]data.User, error)

func (UsersQ) Upsert

func (q UsersQ) Upsert(user data.User) error

func (UsersQ) WithGroupedModulesAndSubmodules

func (q UsersQ) WithGroupedModulesAndSubmodules(module *string) data.Users

func (UsersQ) WithGroupedSubmodules

func (q UsersQ) WithGroupedSubmodules(username, module *string) data.Users

Jump to

Keyboard shortcuts

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