db

package
v0.0.0-...-bd23c5e Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Metadata

func Metadata(db *gorm.DB) models.Metadata

func ModelsProvider

func ModelsProvider(db *Database, c *dig.Container)

func Notifications

func Notifications(db *gorm.DB) models.Notifications

func Pages

func Pages(db *gorm.DB) models.Pages

func Preferences

func Preferences(db *gorm.DB) models.Preferences

func Settings

func Settings(db *gorm.DB) models.Settings

func Subscriptions

func Subscriptions(db *gorm.DB) models.Subscriptions

func Users

func Users(db *gorm.DB) models.Users

Types

type Database

type Database struct {
	Users         models.Users
	Pages         models.Pages
	Subscriptions models.Subscriptions
	Preferences   models.Preferences
	Notifications models.Notifications
	Metadata      models.Metadata
	Settings      models.Settings
	// contains filtered or unexported fields
}

func DatabaseProvider

func DatabaseProvider(log zerolog.Logger) (*Database, error)

func (*Database) DB

func (db *Database) DB() *gorm.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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