Documentation ¶
Index ¶
- Constants
- type PostgresCompetitionRepository
- func (repo PostgresCompetitionRepository) CreateCompetition(competition *businesslogic.Competition) error
- func (repo PostgresCompetitionRepository) DeleteCompetition(competition businesslogic.Competition) error
- func (repo PostgresCompetitionRepository) SearchCompetition(criteria businesslogic.SearchCompetitionCriteria) ([]businesslogic.Competition, error)
- func (repo PostgresCompetitionRepository) UpdateCompetition(competition businesslogic.Competition) error
- type PostgresCompetitionStatusRepository
Constants ¶
View Source
const ( DAS_COMPETITION_TABLE = "DAS.COMPETITION" DAS_COMPETITION_COL_STATUS_ID = "STATUS_ID" DAS_COMPETITION_COL_WEBSITE = "WEBSITE" DAS_COMPETITION_COL_ADDRESS = "ADDRESS" DAS_COMPETITION_COL_DATETIME_START = "DATETIME_START" DAS_COMPETITION_COL_DATETIME_END = "DATETIME_END" DAS_COMPETITION_COL_CONTACT_NAME = "CONTACT_NAME" DAS_COMPETITION_COL_CONTACT_PHONE = "CONTACT_PHONE" DAS_COMPETITION_COL_CONTACT_EMAIL = "CONTACT_EMAIL" DAS_COMPETITION_COL_ATTENDANCE = "ATTENDANCE" )
View Source
const (
DAS_COMPETITION_STATUS_TABLE = "DAS.COMPETITION_STATUS"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresCompetitionRepository ¶
type PostgresCompetitionRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresCompetitionRepository) CreateCompetition ¶
func (repo PostgresCompetitionRepository) CreateCompetition(competition *businesslogic.Competition) error
func (PostgresCompetitionRepository) DeleteCompetition ¶
func (repo PostgresCompetitionRepository) DeleteCompetition(competition businesslogic.Competition) error
func (PostgresCompetitionRepository) SearchCompetition ¶
func (repo PostgresCompetitionRepository) SearchCompetition(criteria businesslogic.SearchCompetitionCriteria) ([]businesslogic.Competition, error)
func (PostgresCompetitionRepository) UpdateCompetition ¶
func (repo PostgresCompetitionRepository) UpdateCompetition(competition businesslogic.Competition) error
type PostgresCompetitionStatusRepository ¶
type PostgresCompetitionStatusRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresCompetitionStatusRepository) GetCompetitionAllStatus ¶
func (repo PostgresCompetitionStatusRepository) GetCompetitionAllStatus() ([]businesslogic.CompetitionStatus, error)
Click to show internal directories.
Click to hide internal directories.