Documentation ¶
Index ¶
- Constants
- type PostgresAgeRepository
- func (repo PostgresAgeRepository) CreateAge(age *businesslogic.Age) error
- func (repo PostgresAgeRepository) DeleteAge(age businesslogic.Age) error
- func (repo PostgresAgeRepository) SearchAge(criteria businesslogic.SearchAgeCriteria) ([]businesslogic.Age, error)
- func (repo PostgresAgeRepository) UpdateAge(age businesslogic.Age) error
- type PostgresCityRepository
- func (repo PostgresCityRepository) CreateCity(city *businesslogic.City) error
- func (repo PostgresCityRepository) DeleteCity(city businesslogic.City) error
- func (repo PostgresCityRepository) SearchCity(criteria businesslogic.SearchCityCriteria) ([]businesslogic.City, error)
- func (repo PostgresCityRepository) UpdateCity(city businesslogic.City) error
- type PostgresCountryRepository
- func (repo PostgresCountryRepository) CreateCountry(country *businesslogic.Country) error
- func (repo PostgresCountryRepository) DeleteCountry(country businesslogic.Country) error
- func (repo PostgresCountryRepository) SearchCountry(criteria businesslogic.SearchCountryCriteria) ([]businesslogic.Country, error)
- func (repo PostgresCountryRepository) UpdateCountry(country businesslogic.Country) error
- type PostgresDanceRepository
- func (repo PostgresDanceRepository) CreateDance(dance *businesslogic.Dance) error
- func (repo PostgresDanceRepository) DeleteDance(dance businesslogic.Dance) error
- func (repo PostgresDanceRepository) SearchDance(criteria businesslogic.SearchDanceCriteria) ([]businesslogic.Dance, error)
- func (repo PostgresDanceRepository) UpdateDance(dance businesslogic.Dance) error
- type PostgresDivisionRepository
- func (repo PostgresDivisionRepository) CreateDivision(division *businesslogic.Division) error
- func (repo PostgresDivisionRepository) DeleteDivision(division businesslogic.Division) error
- func (repo PostgresDivisionRepository) SearchDivision(criteria businesslogic.SearchDivisionCriteria) ([]businesslogic.Division, error)
- func (repo PostgresDivisionRepository) UpdateDivision(division businesslogic.Division) error
- type PostgresFederationRepository
- func (repo PostgresFederationRepository) CreateFederation(federation *businesslogic.Federation) error
- func (repo PostgresFederationRepository) DeleteFederation(federation businesslogic.Federation) error
- func (repo PostgresFederationRepository) SearchFederation(criteria businesslogic.SearchFederationCriteria) ([]businesslogic.Federation, error)
- func (repo PostgresFederationRepository) UpdateFederation(federation businesslogic.Federation) error
- type PostgresGenderRepository
- type PostgresProficiencyRepository
- func (repo PostgresProficiencyRepository) CreateProficiency(proficiency *businesslogic.Proficiency) error
- func (repo PostgresProficiencyRepository) DeleteProficiency(proficiency businesslogic.Proficiency) error
- func (repo PostgresProficiencyRepository) SearchProficiency(criteria businesslogic.SearchProficiencyCriteria) ([]businesslogic.Proficiency, error)
- func (repo PostgresProficiencyRepository) UpdateProficiency(proficiency businesslogic.Proficiency) error
- type PostgresSchoolRepository
- func (repo PostgresSchoolRepository) CreateSchool(school *businesslogic.School) error
- func (repo PostgresSchoolRepository) DeleteSchool(school businesslogic.School) error
- func (repo PostgresSchoolRepository) SearchSchool(criteria businesslogic.SearchSchoolCriteria) ([]businesslogic.School, error)
- func (repo PostgresSchoolRepository) UpdateSchool(school businesslogic.School) error
- type PostgresStateRepository
- func (repo PostgresStateRepository) CreateState(state *businesslogic.State) error
- func (repo PostgresStateRepository) DeleteState(state businesslogic.State) error
- func (repo PostgresStateRepository) SearchState(criteria businesslogic.SearchStateCriteria) ([]businesslogic.State, error)
- func (repo PostgresStateRepository) UpdateState(state businesslogic.State) error
- type PostgresStudioRepository
- func (repo PostgresStudioRepository) CreateStudio(studio *businesslogic.Studio) error
- func (repo PostgresStudioRepository) DeleteStudio(studio businesslogic.Studio) error
- func (repo PostgresStudioRepository) SearchStudio(criteria businesslogic.SearchStudioCriteria) ([]businesslogic.Studio, error)
- func (repo PostgresStudioRepository) UpdateStudio(studio businesslogic.Studio) error
- type PostgresStyleRepository
- func (repo PostgresStyleRepository) CreateStyle(style *businesslogic.Style) error
- func (repo PostgresStyleRepository) DeleteStyle(style businesslogic.Style) error
- func (repo PostgresStyleRepository) SearchStyle(criteria businesslogic.SearchStyleCriteria) ([]businesslogic.Style, error)
- func (repo PostgresStyleRepository) UpdateStyle(style businesslogic.Style) error
Constants ¶
const ( DAS_AGE_TABLE = "DAS.AGE" DAS_AGE_COL_ENFORCED = "ENFORCED" DAS_AGE_COL_MINIMUM_AGE = "MINIMUM_AGE" DAS_AGE_COL_MAXIMUM_AGE = "MAXIMUM_AGE" )
const ( DAS_FEDERATION_TABLE = "DAS.FEDERATION" DAS_FEDERATION_COL_YEAR_FOUNDED = "YEAR_FOUNDED" )
const (
DAS_COUNTRY_TABLE = "DAS.COUNTRY"
)
const (
DAS_DANCE_TABLE = "DAS.DANCE"
)
const (
DAS_DIVISION_TABLE = "DAS.DIVISION"
)
const (
DAS_PROFICIENCY_TABLE = "DAS.PROFICIENCY"
)
const (
DAS_SCHOOL_TABLE = "DAS.SCHOOL"
)
const (
DAS_STATE_TABLE = "DAS.STATE"
)
const (
DAS_STUDIO_TABLE = "DAS.STUDIO"
)
const (
DAS_STYLE_TABLE = "DAS.STYLE"
)
const (
DAS_USER_GENDER_TABLE = "DAS.GENDER"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresAgeRepository ¶
type PostgresAgeRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresAgeRepository) CreateAge ¶
func (repo PostgresAgeRepository) CreateAge(age *businesslogic.Age) error
func (PostgresAgeRepository) DeleteAge ¶
func (repo PostgresAgeRepository) DeleteAge(age businesslogic.Age) error
func (PostgresAgeRepository) SearchAge ¶
func (repo PostgresAgeRepository) SearchAge(criteria businesslogic.SearchAgeCriteria) ([]businesslogic.Age, error)
func (PostgresAgeRepository) UpdateAge ¶
func (repo PostgresAgeRepository) UpdateAge(age businesslogic.Age) error
type PostgresCityRepository ¶
type PostgresCityRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
PostgresCityRepository implements ICityRepository and provides CRUD operations in PostgreSQL database
func (PostgresCityRepository) CreateCity ¶
func (repo PostgresCityRepository) CreateCity(city *businesslogic.City) error
CreateCity inserts a new City record in the database and updates the ID key of city
func (PostgresCityRepository) DeleteCity ¶
func (repo PostgresCityRepository) DeleteCity(city businesslogic.City) error
DeleteCity removes the City record from the database
func (PostgresCityRepository) SearchCity ¶
func (repo PostgresCityRepository) SearchCity(criteria businesslogic.SearchCityCriteria) ([]businesslogic.City, error)
SearchCity selects cityes
func (PostgresCityRepository) UpdateCity ¶
func (repo PostgresCityRepository) UpdateCity(city businesslogic.City) error
UpdateCity updates the value in a City record
type PostgresCountryRepository ¶
type PostgresCountryRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
PostgresCountryRepository implements the ICountryRepository with a Postgres database
func (PostgresCountryRepository) CreateCountry ¶
func (repo PostgresCountryRepository) CreateCountry(country *businesslogic.Country) error
CreateCountry inserts a Country object into a Postgres database
func (PostgresCountryRepository) DeleteCountry ¶
func (repo PostgresCountryRepository) DeleteCountry(country businesslogic.Country) error
DeleteCountry deletes a Country object from a Postgres database
func (PostgresCountryRepository) SearchCountry ¶
func (repo PostgresCountryRepository) SearchCountry(criteria businesslogic.SearchCountryCriteria) ([]businesslogic.Country, error)
SearchCountry searches the Country object in a Postgres database with the provided criteria
func (PostgresCountryRepository) UpdateCountry ¶
func (repo PostgresCountryRepository) UpdateCountry(country businesslogic.Country) error
UpdateCountry updates a Country object in a Postgres database
type PostgresDanceRepository ¶
type PostgresDanceRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresDanceRepository) CreateDance ¶
func (repo PostgresDanceRepository) CreateDance(dance *businesslogic.Dance) error
func (PostgresDanceRepository) DeleteDance ¶
func (repo PostgresDanceRepository) DeleteDance(dance businesslogic.Dance) error
func (PostgresDanceRepository) SearchDance ¶
func (repo PostgresDanceRepository) SearchDance(criteria businesslogic.SearchDanceCriteria) ([]businesslogic.Dance, error)
func (PostgresDanceRepository) UpdateDance ¶
func (repo PostgresDanceRepository) UpdateDance(dance businesslogic.Dance) error
type PostgresDivisionRepository ¶
type PostgresDivisionRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresDivisionRepository) CreateDivision ¶
func (repo PostgresDivisionRepository) CreateDivision(division *businesslogic.Division) error
func (PostgresDivisionRepository) DeleteDivision ¶
func (repo PostgresDivisionRepository) DeleteDivision(division businesslogic.Division) error
func (PostgresDivisionRepository) SearchDivision ¶
func (repo PostgresDivisionRepository) SearchDivision(criteria businesslogic.SearchDivisionCriteria) ([]businesslogic.Division, error)
func (PostgresDivisionRepository) UpdateDivision ¶
func (repo PostgresDivisionRepository) UpdateDivision(division businesslogic.Division) error
type PostgresFederationRepository ¶
type PostgresFederationRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresFederationRepository) CreateFederation ¶
func (repo PostgresFederationRepository) CreateFederation(federation *businesslogic.Federation) error
func (PostgresFederationRepository) DeleteFederation ¶
func (repo PostgresFederationRepository) DeleteFederation(federation businesslogic.Federation) error
func (PostgresFederationRepository) SearchFederation ¶
func (repo PostgresFederationRepository) SearchFederation(criteria businesslogic.SearchFederationCriteria) ([]businesslogic.Federation, error)
func (PostgresFederationRepository) UpdateFederation ¶
func (repo PostgresFederationRepository) UpdateFederation(federation businesslogic.Federation) error
type PostgresGenderRepository ¶
type PostgresGenderRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresGenderRepository) GetAllGenders ¶
func (repo PostgresGenderRepository) GetAllGenders() ([]businesslogic.Gender, error)
type PostgresProficiencyRepository ¶
type PostgresProficiencyRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresProficiencyRepository) CreateProficiency ¶
func (repo PostgresProficiencyRepository) CreateProficiency(proficiency *businesslogic.Proficiency) error
func (PostgresProficiencyRepository) DeleteProficiency ¶
func (repo PostgresProficiencyRepository) DeleteProficiency(proficiency businesslogic.Proficiency) error
func (PostgresProficiencyRepository) SearchProficiency ¶
func (repo PostgresProficiencyRepository) SearchProficiency(criteria businesslogic.SearchProficiencyCriteria) ([]businesslogic.Proficiency, error)
func (PostgresProficiencyRepository) UpdateProficiency ¶
func (repo PostgresProficiencyRepository) UpdateProficiency(proficiency businesslogic.Proficiency) error
type PostgresSchoolRepository ¶
type PostgresSchoolRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresSchoolRepository) CreateSchool ¶
func (repo PostgresSchoolRepository) CreateSchool(school *businesslogic.School) error
func (PostgresSchoolRepository) DeleteSchool ¶
func (repo PostgresSchoolRepository) DeleteSchool(school businesslogic.School) error
func (PostgresSchoolRepository) SearchSchool ¶
func (repo PostgresSchoolRepository) SearchSchool(criteria businesslogic.SearchSchoolCriteria) ([]businesslogic.School, error)
func (PostgresSchoolRepository) UpdateSchool ¶
func (repo PostgresSchoolRepository) UpdateSchool(school businesslogic.School) error
type PostgresStateRepository ¶
type PostgresStateRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresStateRepository) CreateState ¶
func (repo PostgresStateRepository) CreateState(state *businesslogic.State) error
func (PostgresStateRepository) DeleteState ¶
func (repo PostgresStateRepository) DeleteState(state businesslogic.State) error
func (PostgresStateRepository) SearchState ¶
func (repo PostgresStateRepository) SearchState(criteria businesslogic.SearchStateCriteria) ([]businesslogic.State, error)
func (PostgresStateRepository) UpdateState ¶
func (repo PostgresStateRepository) UpdateState(state businesslogic.State) error
type PostgresStudioRepository ¶
type PostgresStudioRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
func (PostgresStudioRepository) CreateStudio ¶
func (repo PostgresStudioRepository) CreateStudio(studio *businesslogic.Studio) error
func (PostgresStudioRepository) DeleteStudio ¶
func (repo PostgresStudioRepository) DeleteStudio(studio businesslogic.Studio) error
func (PostgresStudioRepository) SearchStudio ¶
func (repo PostgresStudioRepository) SearchStudio(criteria businesslogic.SearchStudioCriteria) ([]businesslogic.Studio, error)
func (PostgresStudioRepository) UpdateStudio ¶
func (repo PostgresStudioRepository) UpdateStudio(studio businesslogic.Studio) error
type PostgresStyleRepository ¶
type PostgresStyleRepository struct { Database *sql.DB SqlBuilder squirrel.StatementBuilderType }
PostgresStyleRepository implements IStyleRepository and feeds data to businesslogic from a PostgreSQL database
func (PostgresStyleRepository) CreateStyle ¶
func (repo PostgresStyleRepository) CreateStyle(style *businesslogic.Style) error
func (PostgresStyleRepository) DeleteStyle ¶
func (repo PostgresStyleRepository) DeleteStyle(style businesslogic.Style) error
func (PostgresStyleRepository) SearchStyle ¶
func (repo PostgresStyleRepository) SearchStyle(criteria businesslogic.SearchStyleCriteria) ([]businesslogic.Style, error)
func (PostgresStyleRepository) UpdateStyle ¶
func (repo PostgresStyleRepository) UpdateStyle(style businesslogic.Style) error