referencedal

package
v0.0.0-...-99b79bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	DAS_FEDERATION_TABLE            = "DAS.FEDERATION"
	DAS_FEDERATION_COL_YEAR_FOUNDED = "YEAR_FOUNDED"
)
View Source
const (
	DAS_COUNTRY_TABLE = "DAS.COUNTRY"
)
View Source
const (
	DAS_DANCE_TABLE = "DAS.DANCE"
)
View Source
const (
	DAS_DIVISION_TABLE = "DAS.DIVISION"
)
View Source
const (
	DAS_PROFICIENCY_TABLE = "DAS.PROFICIENCY"
)
View Source
const (
	DAS_SCHOOL_TABLE = "DAS.SCHOOL"
)
View Source
const (
	DAS_STATE_TABLE = "DAS.STATE"
)
View Source
const (
	DAS_STUDIO_TABLE = "DAS.STUDIO"
)
View Source
const (
	DAS_STYLE_TABLE = "DAS.STYLE"
)
View Source
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 (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

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

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 (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 (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 (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 (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 (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 (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 (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 (PostgresStyleRepository) UpdateStyle

func (repo PostgresStyleRepository) UpdateStyle(style businesslogic.Style) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL