db

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PollTypeAcceptanceSet uint8

	PollPublicityPublic           uint8
	PollPublicityPublicRegistered uint8
	PollPublicityHidden           uint8
	PollPublicityHiddenRegistered uint8
	PollPublicityInvited          uint8

	PollRulePlurality uint8

	RoundTypeFreelyAsynchronous uint8
)

Constants for Polls fields.

View Source
var DB *sql.DB

Database pool for the application.

View Source
var Ok bool

Whether the database is usable. May be false if there is no configuration for the package.

Functions

func AddURLQuery added in v0.0.4

func AddURLQuery(url, query string) string

AddURLQuery adds a query string to an url string. TODO: Move this function somewhere else.

func MillisecondsToTime added in v0.0.7

func MillisecondsToTime(milli uint64) string

MillisecondsToTime convert a time in millisecond into a time understandable by the database.

Types

This section is empty.

Directories

Path Synopsis
Package dbtest allows to temporarily add test data to the database.
Package dbtest allows to temporarily add test data to the database.

Jump to

Keyboard shortcuts

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