Documentation ¶
Index ¶
Constants ¶
View Source
const Memory = ":memory:?_foreign_keys=1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CountryTable ¶
type CountryTable struct {
// contains filtered or unexported fields
}
func NewCountryTable ¶
func NewCountryTable(db *sqlx.DB) *CountryTable
func (*CountryTable) UpdateDetail ¶
func (*CountryTable) UpsertCountry ¶
func (c *CountryTable) UpsertCountry(ctx context.Context, alpha2Code, englishShortName string) error
type LanguageTable ¶
type LanguageTable struct {
// contains filtered or unexported fields
}
func NewLanguageTable ¶
func NewLanguageTable(db *sqlx.DB) *LanguageTable
func (*LanguageTable) SetLocalShortName ¶
func (t *LanguageTable) SetLocalShortName(ctx context.Context, countryCode, languageCode, localShortName string) error
func (*LanguageTable) UpsertLanguage ¶
type SubdivisionTable ¶
type SubdivisionTable struct {
// contains filtered or unexported fields
}
func NewSubdivisionTable ¶
func NewSubdivisionTable(db *sqlx.DB) *SubdivisionTable
func (*SubdivisionTable) UpsertSubdivision ¶
func (t *SubdivisionTable) UpsertSubdivision(ctx context.Context, subdivision extract.Subdivision) error
Click to show internal directories.
Click to hide internal directories.