database

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseFlagsCheckI18nResult

type DatabaseFlagsCheckI18nResult struct {
	TopicCount      int
	FlagCount       int
	Inconsistencies []string
}

DatabaseFlagsCheckI18nResult holds the counts and any inconsistencies

func DatabaseFlagsCheckI18nConsistency

func DatabaseFlagsCheckI18nConsistency(
	ctx context.Context,
	dbPool *pgxpool.Pool,
	flagTable,
	topicTable string,
	languages []string,
) (*DatabaseFlagsCheckI18nResult, error)

DatabaseFlagsCheckI18nConsistency checks that all flags have the expected languages and that their topic_id exists in the topic table. Returns counts of unique topics, flags, and any inconsistencies.

Jump to

Keyboard shortcuts

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