pg

package
v0.0.0-...-aea796d Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetricsStore

func NewMetricsStore(db *bun.DB) store.MetricsStore

Types

type PoolConfig

type PoolConfig struct {
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxLifetime time.Duration
}

PoolConfig holds connection pool settings.

type Store

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

Store implements store.Store backed by PostgreSQL using Bun ORM.

func New

func New(databaseURL string, pool ...PoolConfig) (*Store, error)

New creates a new PostgreSQL-backed Store with connection retry and pool config.

func (*Store) Applications

func (s *Store) Applications() store.ApplicationStore

func (*Store) Close

func (s *Store) Close() error

Close closes the database connection.

func (*Store) CronJobRuns

func (s *Store) CronJobRuns() store.CronJobRunStore

func (*Store) CronJobs

func (s *Store) CronJobs() store.CronJobStore

func (*Store) DB

func (s *Store) DB() *bun.DB

DB returns the underlying bun.DB for use in migrations.

func (*Store) DatabaseBackups

func (s *Store) DatabaseBackups() store.DatabaseBackupStore

func (*Store) Deployments

func (s *Store) Deployments() store.DeploymentStore

func (*Store) Domains

func (s *Store) Domains() store.DomainStore

func (*Store) Invitations

func (s *Store) Invitations() store.InvitationStore

func (*Store) ManagedDatabases

func (s *Store) ManagedDatabases() store.ManagedDatabaseStore

func (*Store) NotificationChannels

func (s *Store) NotificationChannels() store.NotificationChannelStore

func (*Store) Organizations

func (s *Store) Organizations() store.OrganizationStore

func (*Store) ProjectMembers

func (s *Store) ProjectMembers() store.ProjectMemberStore

func (*Store) Projects

func (s *Store) Projects() store.ProjectStore

func (*Store) ServerNodes

func (s *Store) ServerNodes() store.ServerNodeStore

func (*Store) Settings

func (s *Store) Settings() store.SettingStore

func (*Store) SharedResources

func (s *Store) SharedResources() store.SharedResourceStore

func (*Store) SystemBackups

func (s *Store) SystemBackups() store.SystemBackupStore

func (*Store) Templates

func (s *Store) Templates() store.TemplateStore

func (*Store) Users

func (s *Store) Users() store.UserStore

Jump to

Keyboard shortcuts

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