db

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

func GetTopicNumberOfOccurrencesByTopicId

func GetTopicNumberOfOccurrencesByTopicId(topicID int) int

func InitDB added in v0.12.0

func InitDB()

Types

type EpubsForTopicWithNumberOfMatchedPages

type EpubsForTopicWithNumberOfMatchedPages = models.EpubsForTopicWithNumberOfMatchedPages

func GetEpubsForTopicWithNumberOfMatchedPages

func GetEpubsForTopicWithNumberOfMatchedPages(topicID int) []*EpubsForTopicWithNumberOfMatchedPages

type EpubsNumberOfPage

type EpubsNumberOfPage = models.EpubsNumberOfPages

func GetEpubsNumberOfPages

func GetEpubsNumberOfPages() (epubsNumberOfPages []*EpubsNumberOfPage)

type ExternalRelationsForTopic

type ExternalRelationsForTopic = models.ExternalRelationsForTopic

func GetExternalRelationsForTopics

func GetExternalRelationsForTopics(topicID int) []*ExternalRelationsForTopic

type Page

type Page = models.Page

func GetPagesAll

func GetPagesAll() (pages []*Page)

func GetPagesByPageIDs added in v0.10.0

func GetPagesByPageIDs(pageIDs []int) (pagesByPageIDs []*Page)

type RelatedTopicNamesForTopicWithNumberOfOccurrences

type RelatedTopicNamesForTopicWithNumberOfOccurrences = models.RelatedTopicNamesForTopicWithNumberOfOccurrences

func GetRelatedTopicNamesForTopicWithNumberOfOccurrences

func GetRelatedTopicNamesForTopicWithNumberOfOccurrences(topicID int) (relatedTopicsWithNumberOfOccurrences []*RelatedTopicNamesForTopicWithNumberOfOccurrences)

type Topic

type Topic struct {
	ID                 int
	DisplayName        string
	DisplayNameSortKey string
}

func GetTopicsWithSortKeysByFirstSortableCharacterRegexp

func GetTopicsWithSortKeysByFirstSortableCharacterRegexp(regexp string) (topics []Topic)

type TopicAlternateName

type TopicAlternateName = models.TopicAlternateName

func GetTopicsWithAlternateNamesAll

func GetTopicsWithAlternateNamesAll() (topicsWithAlternateNames []*TopicAlternateName)

func GetTopicsWithAlternateNamesByTopicIDs

func GetTopicsWithAlternateNamesByTopicIDs(topicIDs []string) (topicsWithAlternateNamesByTopicIDs []*TopicAlternateName)

type TopicNamesForPage

type TopicNamesForPage = models.TopicNamesForPage

func GetPageTopicNamesByPageId

func GetPageTopicNamesByPageId(pageId int) (topicNamesForPage []*TopicNamesForPage)

type TopicNumberOfOccurrences

type TopicNumberOfOccurrences = models.TopicNumberOfOccurrences

Directories

Path Synopsis
postgres
models
Package models contains the types for schema 'public'.
Package models contains the types for schema 'public'.

Jump to

Keyboard shortcuts

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