database

package
v0.0.0-...-66313eb Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const OnlyRealUsersCondition = "is_staff = false AND is_test = false AND login != ''"
View Source
const (
	PromoFormat = "01/2006"
)
View Source
const UnwantedSubjectsCondition = `name NOT LIKE 'Day %' AND
	name NOT LIKE '%DEPRECATED%' AND
	name NOT LIKE 'Rush %'`

Variables

This section is empty.

Functions

func OnlyRealUsers

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

func OpenDB

func OpenDB() (*gorm.DB, error)

func WithCampus

func WithCampus(campusID string) func(db *gorm.DB) *gorm.DB

func WithPromo

func WithPromo(promo string) func(db *gorm.DB) *gorm.DB

Types

type DatabaseType

type DatabaseType int
const (
	Production DatabaseType = iota
	Development
)

Jump to

Keyboard shortcuts

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