Documentation ¶
Index ¶
- type CNCMySQLHandler
- func (c *CNCMySQLHandler) GetFirstDate() (time.Time, error)
- func (c *CNCMySQLHandler) GetRecordInfo(identifier string) (*DBData, error)
- func (c *CNCMySQLHandler) IdentifierExists(identifier string) (bool, error)
- func (c *CNCMySQLHandler) ListRecordInfo(from *time.Time, until *time.Time) ([]DBData, error)
- type ContactPersonData
- type CorpusData
- type DBData
- type DBOverrides
- type DatabaseSetup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNCMySQLHandler ¶
type CNCMySQLHandler struct {
// contains filtered or unexported fields
}
func NewCNCMySQLHandler ¶
func NewCNCMySQLHandler(cnf DatabaseSetup) (*CNCMySQLHandler, error)
func (*CNCMySQLHandler) GetFirstDate ¶
func (c *CNCMySQLHandler) GetFirstDate() (time.Time, error)
func (*CNCMySQLHandler) GetRecordInfo ¶
func (c *CNCMySQLHandler) GetRecordInfo(identifier string) (*DBData, error)
func (*CNCMySQLHandler) IdentifierExists ¶
func (c *CNCMySQLHandler) IdentifierExists(identifier string) (bool, error)
func (*CNCMySQLHandler) ListRecordInfo ¶
type ContactPersonData ¶
type ContactPersonData struct { Firstname string Lastname string Email string Affiliation sql.NullString }
type CorpusData ¶
type DBData ¶
type DBData struct { ID int Date time.Time Hosted bool Type string Name string DescEN sql.NullString DescCS sql.NullString DateIssued string TitleEN string TitleCS string Link sql.NullString License string Authors string ContactPerson ContactPersonData CorpusData CorpusData }
type DBOverrides ¶
type DBOverrides struct { CorporaTableName string `json:"corporaTableName"` UserTableName string `json:"userTableName"` UserTableFirstNameCol string `json:"userTableFirstNameCol"` UserTableLastNameCol string `json:"userTableLastNameCol"` }
DBOverrides handles differences between KonText default database schema and the CNC-one which is slightly different
type DatabaseSetup ¶
Click to show internal directories.
Click to hide internal directories.