db

package
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDuplicateKeyError

func IsDuplicateKeyError(err error) bool

IsDuplicateKeyError returns true if the passed error indicates that the last INSERT failed because a unique constraint was violated

Types

type EngineStability

type EngineStability int16
const (
	EngineUnknown EngineStability = 0
	EngineStable  EngineStability = iota + 1
	EngineRC
	EngineNightly
)

type ModRole

type ModRole int16

ModRole models the valid values for mod_team_members.role

const (
	ModRoleOwner ModRole = iota + 1
	ModRoleUploader
	ModRoleTester
)

type ModType

type ModType int16

ModType models the valid values for mods.type

const (
	TypeMod ModType = iota + 1
	TypeTotalConversion
	TypeEngine
	TypeTool
	TypeExtension
)

type PackageType

type PackageType int16
const (
	PackageRequired PackageType = iota + 1
	PackageRecommended
	PackageOptional
)

type UserRole

type UserRole int16

UserRole models the valid values for users.role

const (
	UserRoleGuest UserRole = iota + 1
	UserRoleMember
	UserRoleModeration
	UserRoleAdmin
)

Jump to

Keyboard shortcuts

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