Versions in this module Expand all Collapse all v0 v0.1.1 Oct 13, 2022 Changes in this version + type ColBhlRefs struct + ItemID uint + Odds float64 + PageID uint + PartID uint + Quality int + RecordID string + type ColNomenRef struct + CanonicalSimple string + CanonicalStem string + Class string + Family string + Genus string + ID uint + ItemID uint + Kingdom string + Name string + Odds float64 + Ordr string + PageID uint + PartID uint + Phylum string + Quality int + RecordID string + Ref string + RefsNum uint v0.1.0 Sep 30, 2022 Changes in this version + func Truncate(d *sql.DB, tables []string) error + type ItemStats struct + AnimaliaNum uint + BacteriaNum uint + FungiNum uint + ID uint + MainClass string + MainClassPercent uint + MainFamily string + MainFamilyPercent uint + MainGenus string + MainGenusPercent uint + MainKingdom string + MainKingdomPercent uint + MainOrder string + MainOrderPercent uint + MainPhylum string + MainPhylumPercent uint + MainTaxon string + MainTaxonPercent uint + MainTaxonRank string + NamesTotal uint + PlantaeNum uint + type NameOccurrence struct + AnnotNomen string + NameStringID string + OddsLog10 float64 + OffsetEnd uint + OffsetStart uint + PageID uint type NameString + ClassificationIDs string + ClassificationRanks string + OddsLog10 float32 + RecordID string type Page + SequenceOrder uint v0.0.9 Oct 7, 2021 Changes in this version + func GetValue(kv *badger.DB, key string) int + func GetValues(kv *badger.DB, keys []string) (map[string][]byte, error) + func InitKeyVal(dir string) *badger.DB + func NewDB(cnf config.Config) *sql.DB + func NewDbGorm(cnf config.Config) *gorm.DB + func QuoteString(s string) string + func ResetKeyVal(dir string) error + func RunQuery(d *sql.DB, q string) *sql.Rows + func TruncateBHL(d *sql.DB) + func TruncateNames(d *sql.DB) error + func TruncateOccur(d *sql.DB) error + type Item struct + AnimaliaNum uint + BacteriaNum uint + BarCode string + Context string + FungiNum uint + ID uint + KingdomPercent uint + MajorKingdom string + PathsTotal uint + PlantaeNum uint + TitleAbbr1 string + TitleAbbr2 string + TitleDOI string + TitleID uint + TitleLang string + TitleName string + TitleYearEnd sql.NullInt32 + TitleYearStart sql.NullInt32 + Vol string + YearEnd sql.NullInt32 + YearStart sql.NullInt32 + type NameString struct + Classification string + Curation bool + CurrentCanonical string + CurrentName string + DataSourceId sql.NullInt32 + DataSourceTitle string + DataSourcesNumber uint + EditDistance uint + Error string + ID string + MatchType string + MatchedCanonical string + MatchedName string + Name string + Occurences uint + Odds float32 + StemEditDistance uint + TaxonID string + type Page struct + FileNum uint + ID uint + ItemID uint + PageNum sql.NullInt64 + type PageNameString struct + Annotation string + AnnotationType string + NameStringID string + Odds float64 + OffsetEnd uint + OffsetStart uint + PageID uint + type Part struct + ContainerTitle string + ContributorName string + DOI string + Date string + Day sql.NullInt32 + ID uint + Issue string + ItemID sql.NullInt32 + Language string + Length sql.NullInt32 + Month sql.NullInt32 + PageID sql.NullInt32 + PageNumEnd sql.NullInt32 + PageNumStart sql.NullInt32 + PublicationDetails string + SegmentType string + SequenceOrder sql.NullInt32 + Series string + Title string + Volume string + Year sql.NullInt32 + YearEnd sql.NullInt32