Versions in this module Expand all Collapse all v0 v0.0.3 Jul 14, 2026 v0.0.2 May 27, 2026 v0.0.1 May 22, 2026 Changes in this version + const GenderFemale + const GenderMale + const GenderOther + const GenderUnknown + const NoteFlowed + const NoteFormatted + var ErrReadOnly = errors.New("database is read-only") + func NewHandle() string + type Address struct + CitationList []string + City string + Class string + Country string + County string + Date *Date + Locality string + NoteList []string + Phone string + Postal string + Private bool + State string + Street string + type Attribute struct + CitationList []string + Class string + NoteList []string + Private bool + Type GrampsType + Value string + type ChildRef struct + CitationList []string + Class string + Frel GrampsType + Mrel GrampsType + NoteList []string + Private bool + Ref string + type Citation struct + AttributeList []SrcAttribute + Change int64 + Class string + Confidence int + Date *Date + GrampsID string + Handle string + MediaList []MediaRef + NoteList []string + Page string + Private bool + SourceHandle *string + TagList []string + type Database struct + func Create(path string, name string) (*Database, error) + func Open(path string) (*Database, error) + func OpenReadOnly(path string) (*Database, error) + func (d *Database) AddCitation(c *Citation) error + func (d *Database) AddEvent(e *Event) error + func (d *Database) AddFamily(f *Family) error + func (d *Database) AddMedia(m *Media) error + func (d *Database) AddNote(n *Note) error + func (d *Database) AddPerson(p *Person) error + func (d *Database) AddPlace(p *Place) error + func (d *Database) AddRepository(r *Repository) error + func (d *Database) AddSource(s *Source) error + func (d *Database) AddTag(t *Tag) error + func (d *Database) Citations() iter.Seq2[*Citation, error] + func (d *Database) Close() error + func (d *Database) DeleteCitation(handle string) error + func (d *Database) DeleteEvent(handle string) error + func (d *Database) DeleteFamily(handle string) error + func (d *Database) DeleteMedia(handle string) error + func (d *Database) DeleteNote(handle string) error + func (d *Database) DeletePerson(handle string) error + func (d *Database) DeletePlace(handle string) error + func (d *Database) DeleteRepository(handle string) error + func (d *Database) DeleteSource(handle string) error + func (d *Database) DeleteTag(handle string) error + func (d *Database) Dir() string + func (d *Database) Events() iter.Seq2[*Event, error] + func (d *Database) Families() iter.Seq2[*Family, error] + func (d *Database) GetCitation(handle string) (*Citation, error) + func (d *Database) GetCitationByGrampsID(id string) (*Citation, error) + func (d *Database) GetEvent(handle string) (*Event, error) + func (d *Database) GetEventByGrampsID(id string) (*Event, error) + func (d *Database) GetFamily(handle string) (*Family, error) + func (d *Database) GetFamilyByGrampsID(id string) (*Family, error) + func (d *Database) GetMedia(handle string) (*Media, error) + func (d *Database) GetMediaByGrampsID(id string) (*Media, error) + func (d *Database) GetMetadata(key string) (any, error) + func (d *Database) GetNote(handle string) (*Note, error) + func (d *Database) GetNoteByGrampsID(id string) (*Note, error) + func (d *Database) GetPerson(handle string) (*Person, error) + func (d *Database) GetPersonByGrampsID(id string) (*Person, error) + func (d *Database) GetPlace(handle string) (*Place, error) + func (d *Database) GetPlaceByGrampsID(id string) (*Place, error) + func (d *Database) GetRepository(handle string) (*Repository, error) + func (d *Database) GetRepositoryByGrampsID(id string) (*Repository, error) + func (d *Database) GetSource(handle string) (*Source, error) + func (d *Database) GetSourceByGrampsID(id string) (*Source, error) + func (d *Database) GetTag(handle string) (*Tag, error) + func (d *Database) GetTagByName(name string) (*Tag, error) + func (d *Database) MediaObjects() iter.Seq2[*Media, error] + func (d *Database) Notes() iter.Seq2[*Note, error] + func (d *Database) People() iter.Seq2[*Person, error] + func (d *Database) Places() iter.Seq2[*Place, error] + func (d *Database) Repositories() iter.Seq2[*Repository, error] + func (d *Database) SchemaVersion() int + func (d *Database) SetMetadata(key string, value any) error + func (d *Database) Sources() iter.Seq2[*Source, error] + func (d *Database) Tags() iter.Seq2[*Tag, error] + func (d *Database) UpdateCitation(c *Citation) error + func (d *Database) UpdateEvent(e *Event) error + func (d *Database) UpdateFamily(f *Family) error + func (d *Database) UpdateMedia(m *Media) error + func (d *Database) UpdateNote(n *Note) error + func (d *Database) UpdatePerson(p *Person) error + func (d *Database) UpdatePlace(p *Place) error + func (d *Database) UpdateRepository(r *Repository) error + func (d *Database) UpdateSource(s *Source) error + func (d *Database) UpdateTag(t *Tag) error + type Date struct + Calendar int + Class string + Dateval []int + Format *int + Modifier int + Newyear int + Quality int + Sortval int + Text string + func (d *Date) UnmarshalJSON(data []byte) error + type ErrLocked struct + Holder string + func (e *ErrLocked) Error() string + type ErrUnsupportedSchema struct + Version int + func (e *ErrUnsupportedSchema) Error() string + type Event struct + AttributeList []Attribute + Change int64 + CitationList []string + Class string + Date *Date + Description string + GrampsID string + Handle string + MediaList []MediaRef + NoteList []string + Place string + Private bool + TagList []string + Type GrampsType + type EventRef struct + AttributeList []Attribute + CitationList []string + Class string + NoteList []string + Private bool + Ref string + Role GrampsType + type Family struct + AttributeList []Attribute + Change int64 + ChildRefList []ChildRef + CitationList []string + Class string + Complete int + EventRefList []EventRef + FatherHandle *string + GrampsID string + Handle string + LdsOrdList []LdsOrd + MediaList []MediaRef + MotherHandle *string + NoteList []string + Private bool + TagList []string + Type GrampsType + type FamilySearchSync struct + Class string + ConfirmedTS *int64 + Conflict bool + EssentialConflict bool + FSID *string + FSModifiedTS *int64 + GrampsModifiedTS *int64 + IsRoot bool + StatusTS *int64 + type GrampsType struct + Class string + String string + Value int + type LdsOrd struct + CitationList []string + Class string + Date *Date + Famc string + NoteList []string + Place string + Private bool + Status int + Temple string + Type int + type Location struct + City string + Class string + Country string + County string + Locality string + Parish string + Phone string + Postal string + State string + Street string + type Media struct + AttributeList []Attribute + Change int64 + Checksum string + CitationList []string + Class string + Date *Date + Desc string + GrampsID string + Handle string + Mime string + NoteList []string + Path string + Private bool + TagList []string + Thumb *string + type MediaRef struct + AttributeList []Attribute + CitationList []string + Class string + NoteList []string + Private bool + Rect []int + Ref string + type Name struct + Call string + CitationList []string + Class string + Date *Date + DisplayAs int + Famnick string + FirstName string + GroupAs string + Nick string + NoteList []string + Private bool + SortAs int + Suffix string + SurnameList []Surname + Title string + Type GrampsType + type Note struct + Change int64 + Class string + Format int + GrampsID string + Handle string + Private bool + TagList []string + Text StyledText + Type GrampsType + type Person struct + AddressList []Address + AlternateNames []Name + AttributeList []Attribute + BirthRefIndex int + Change int64 + CitationList []string + Class string + DeathRefIndex int + EventRefList []EventRef + FamilyList []string + FamilySearchSync *FamilySearchSync + Gender int + GrampsID string + Handle string + LdsOrdList []LdsOrd + MediaList []MediaRef + NoteList []string + ParentFamilyList []string + PersonRefList []PersonRef + PrimaryName Name + Private bool + TagList []string + URLs []URL + type PersonRef struct + CitationList []string + Class string + NoteList []string + Private bool + Ref string + Rel string + type Place struct + AltLoc []Location + AltNames []PlaceName + Change int64 + CitationList []string + Class string + Code string + GrampsID string + Handle string + Lat string + Long string + MediaList []MediaRef + Name PlaceName + NoteList []string + PlaceRefList []PlaceRef + PlaceType GrampsType + Private bool + TagList []string + Title string + URLs []URL + type PlaceName struct + Class string + Date *Date + Lang string + Value string + type PlaceRef struct + Class string + Date *Date + Ref string + type RepoRef struct + CallNumber string + Class string + MediaType GrampsType + NoteList []string + Private bool + Ref string + type Repository struct + AddressList []Address + Change int64 + Class string + GrampsID string + Handle string + Name string + NoteList []string + Private bool + TagList []string + Type GrampsType + URLs []URL + type Source struct + Abbrev string + AttributeList []SrcAttribute + Author string + Change int64 + Class string + GrampsID string + Handle string + MediaList []MediaRef + NoteList []string + Private bool + Pubinfo string + RepoRefList []RepoRef + TagList []string + Title string + type SrcAttribute struct + Class string + Private bool + Type GrampsType + Value string + type StyledText struct + Class string + String string + Tags []StyledTextTag + type StyledTextTag struct + Class string + Name GrampsType + Ranges [][]int + Value string + func (s *StyledTextTag) UnmarshalJSON(data []byte) error + type Surname struct + Class string + Connector string + Origintype GrampsType + Prefix string + Primary bool + Surname string + type Tag struct + Change int64 + Class string + Color string + Handle string + Name string + Priority int + type URL struct + Class string + Desc string + Path string + Private bool + Type GrampsType