database

package
v0.0.0-...-3f23c4f Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 6 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 interface {
	Q() QuerierExtended
	Pool() *pgxpool.Pool
	Close()
}

func NewDB

func NewDB(config customconfig.PostgreSQL) (DB, error)

type QuerierExtended

type QuerierExtended interface {
	sqlc.Querier

	RefreshMaterializedViewAggregatedAnime(ctx context.Context) (err error)
	RefreshMaterializedViewConcurrentAggregatedTitle(ctx context.Context) (err error)
	RefreshMaterializedViewConcurrentAggregatedAnimeRelation(ctx context.Context) (err error)
}

type QueriesExtended

type QueriesExtended struct {
	*sqlc.Queries
	// contains filtered or unexported fields
}

func (*QueriesExtended) RefreshMaterializedViewAggregatedAnime

func (e *QueriesExtended) RefreshMaterializedViewAggregatedAnime(ctx context.Context) error

RefreshMaterializedViewAggregatedAnime simply triggers a manual refresh on the materialized view.

func (*QueriesExtended) RefreshMaterializedViewConcurrentAggregatedAnimeRelation

func (e *QueriesExtended) RefreshMaterializedViewConcurrentAggregatedAnimeRelation(ctx context.Context) error

RefreshMaterializedViewConcurrentAggregatedAnimeRelation simply triggers a manual refresh on the materialized view in a concurrent manner.

func (*QueriesExtended) RefreshMaterializedViewConcurrentAggregatedTitle

func (e *QueriesExtended) RefreshMaterializedViewConcurrentAggregatedTitle(ctx context.Context) error

RefreshMaterializedViewConcurrentAggregatedTitle simply triggers a manual refresh on the materialized view in a concurrent manner.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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