// GetDisallowedMedia returns all disallowed media of the given type that matches the specified filter
GetDisallowedMedia returns all disallowed media of the given type that matches the specified filter
// GetDisallowedMedia returns all disallowed media of the given type that matches the specified filter
func GetDisallowedMediaWithTypeAndFilter(node sqalx.Node, mediaType MediaType, filter string, pagParams *PaginationParams) ([]*DisallowedMedia, uint64, error) {
	s := sdb.Select().
		Where(sq.Eq{"disallowed_media.media_type": string(mediaType)}).
		Where(sq.Or{
			sq.Eq{"disallowed_media.id": filter},
			sq.Eq{"disallowed_media.yt_video_id": filter},
			sq.Like{"UPPER(disallowed_media.yt_video_title)": sq.Expr("UPPER(?)", filter)},
		}).
		OrderBy("disallowed_media.media_type DESC")
	s = applyPaginationParameters(s, pagParams)
	return getDisallowedMediaWithSelect(node, s)
}
func GetDisallowedMediaWithTypeAndFilter ( node sqalx . Node , mediaType MediaType , filter string , pagParams * PaginationParams ) ( [ ] * DisallowedMedia , uint64 , error ) { s := sdb . Select ( ) . Where ( sq . Eq { " " : string ( mediaType ) } ) . Where ( sq . Or { sq . Eq { " " : filter } , sq . Eq { " " : filter } , sq . Like { " " : sq . Expr ( " " , filter ) } , } ) . OrderBy ( " " ) s = applyPaginationParameters ( s , pagParams ) return getDisallowedMediaWithSelect ( node , s ) }
GetDisallowedMedia returns all disallowed media of the given type that matches the specified filter
GetDisallowedMedia returns all disallowed media of the given type that matches the specified filter