Documentation ¶
Index ¶
- Variables
- func GetBannersByZoneId(banners []domain.Banner, zoneId int) []domain.Banner
- func GetZonesIdsFromBanners(banners []domain.Banner) []int
- func InitializeTables(connection sqlx.DB)
- func PopulateBanners(connection sqlx.DB)
- func PopulateZones(connection sqlx.DB)
- func Seed()
- func SelectBanners(language string, pageId int, deviceId int) []domain.Banner
- func SelectZone(zoneId int) domain.Zone
- func SelectZones(banners []domain.Banner) []domain.Zone
Constants ¶
This section is empty.
Variables ¶
View Source
var BannersSchema = "" /* 320-byte string literal not displayed */
View Source
var ConnectionString = "Server=SERVER_NAME;Database=DATABASE_NAME;Trusted_Connection=True;"
View Source
var DestroyBannerTable = "IF OBJECT_ID('dbo.banners', 'U') IS NOT NULL DROP TABLE dbo.banners"
View Source
var DestroyZonesTable = "IF OBJECT_ID('dbo.zones', 'U') IS NOT NULL DROP TABLE dbo.zones"
View Source
var ExecuteStoreProcedure = "EXEC cms.spGetBanners @LanguageCode, @PageId, @DeviceTypeId, @ErrorMessage OUTPUT;"
View Source
var StoredProcedureQuery = `` /* 763-byte string literal not displayed */
View Source
var ZonesSchema = "CREATE TABLE zones(id INT, deviceId INT, pageId INT, languageCode NVARCHAR(50), width INT, height INT)"
Functions ¶
func GetBannersByZoneId ¶
func GetZonesIdsFromBanners ¶
func InitializeTables ¶
func PopulateBanners ¶
func PopulateZones ¶
func SelectZone ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.