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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChatsQ

func NewChatsQ(db *pgdb.DB) data.Chats

func NewLinksQ

func NewLinksQ(db *pgdb.DB) data.Links

func NewPermissionsQ

func NewPermissionsQ(db *pgdb.DB) data.Permissions

func NewResponsesQ

func NewResponsesQ(db *pgdb.DB) data.Responses

func NewUsersQ

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

Types

type ChatsQ

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

func (ChatsQ) Delete

func (r ChatsQ) Delete() error

func (ChatsQ) FilterByAccessHash

func (r ChatsQ) FilterByAccessHash(accessHash *int64) data.Chats

func (ChatsQ) FilterByIds

func (r ChatsQ) FilterByIds(ids ...int64) data.Chats

func (ChatsQ) FilterByTitles

func (r ChatsQ) FilterByTitles(titles ...string) data.Chats

func (ChatsQ) Get

func (r ChatsQ) Get() (*data.Chat, error)

func (ChatsQ) New

func (r ChatsQ) New() data.Chats

func (ChatsQ) Select

func (r ChatsQ) Select() ([]data.Chat, error)

func (ChatsQ) Upsert

func (r ChatsQ) Upsert(chat data.Chat) error

type LinksQ

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

func (LinksQ) Delete

func (r LinksQ) Delete() error
func (r LinksQ) FilterByLinks(links ...string) data.Links

func (LinksQ) Get

func (r LinksQ) Get() (*data.Link, error)

func (LinksQ) Insert

func (r LinksQ) Insert(link data.Link) error

func (LinksQ) New

func (r LinksQ) New() data.Links

func (LinksQ) Select

func (r LinksQ) Select() ([]data.Link, error)

type PermissionsQ

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

func (PermissionsQ) Count

func (q PermissionsQ) Count() data.Permissions

func (PermissionsQ) CountWithUsers

func (q PermissionsQ) CountWithUsers() data.Permissions

func (PermissionsQ) Delete

func (q PermissionsQ) Delete() error

func (PermissionsQ) FilterByGreaterTime

func (q PermissionsQ) FilterByGreaterTime(time time.Time) data.Permissions
func (q PermissionsQ) FilterByLinks(links ...string) data.Permissions

func (PermissionsQ) FilterByLowerTime

func (q PermissionsQ) FilterByLowerTime(time time.Time) data.Permissions

func (PermissionsQ) FilterByTelegramIds

func (q PermissionsQ) FilterByTelegramIds(telegramIds ...int64) data.Permissions

func (PermissionsQ) FilterByUserIds

func (q PermissionsQ) FilterByUserIds(userIds ...int64) data.Permissions

func (PermissionsQ) Get

func (q PermissionsQ) Get() (*data.Permission, error)

func (PermissionsQ) GetTotalCount

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

func (PermissionsQ) New

func (q PermissionsQ) New() data.Permissions

func (PermissionsQ) Page

func (q PermissionsQ) Page(pageParams pgdb.OffsetPageParams) data.Permissions

func (PermissionsQ) SearchBy

func (q PermissionsQ) SearchBy(search string) data.Permissions

func (PermissionsQ) Select

func (q PermissionsQ) Select() ([]data.Permission, error)

func (PermissionsQ) UpdateAccessLevel

func (q PermissionsQ) UpdateAccessLevel(permission data.Permission) error

func (PermissionsQ) Upsert

func (q PermissionsQ) Upsert(permission data.Permission) error

func (PermissionsQ) WithUsers

func (q PermissionsQ) WithUsers() data.Permissions

type ResponsesQ

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

func (ResponsesQ) Delete

func (q ResponsesQ) Delete() error

func (ResponsesQ) FilterByIds

func (q ResponsesQ) FilterByIds(ids ...string) data.Responses

func (ResponsesQ) Get

func (q ResponsesQ) Get() (*data.Response, error)

func (ResponsesQ) Insert

func (q ResponsesQ) Insert(response data.Response) error

func (ResponsesQ) New

func (q ResponsesQ) New() data.Responses

func (ResponsesQ) Select

func (q ResponsesQ) Select() ([]data.Response, error)

type UsersQ

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

func (UsersQ) Count

func (q UsersQ) Count() data.Users

func (UsersQ) Delete

func (q UsersQ) Delete() error

func (UsersQ) FilterById

func (q UsersQ) FilterById(id *int64) data.Users

func (UsersQ) FilterByLowerTime

func (q UsersQ) FilterByLowerTime(time time.Time) data.Users

func (UsersQ) FilterByPhone

func (q UsersQ) FilterByPhone(phone string) data.Users

func (UsersQ) FilterByTelegramIds

func (q UsersQ) FilterByTelegramIds(telegramIds ...int64) data.Users

func (UsersQ) FilterByUsername

func (q UsersQ) FilterByUsername(username 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) 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

Jump to

Keyboard shortcuts

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