Gо‑разработчики пишут высоконагруженный бэкенд. Учитывая тренд на импортозамещение, нам часто попадаются заявки на поиск Go‑специалистов для создания облачных сервисов.
Кстати, запросы приходят обязательно на супер‑senior разработчиков, джуны никому не нужны, да и мидлы внезапно не в почете
inline void clear_istream(std::istream& stream)
{
while (stream.get() != '\n')
;
}
template <typename numeric> void check_error(std::istream& stream, numeric& x)
{
while (!(stream >> x))
{
stream.clear(); //обновить флаги в std::cin, чтобы открыть дальнейший ввод
clear_istream(stream); //очистить ввод
std::cerr << "You entered wrong value. Please enter an integer number: ";
}
}check_error(std::cin, arr[i]);
create table service_pay
(
service_id ...,
transaction_id ... CHECK (transaction_id in (select id from transaction_table where type = ...)) #тип расходной транзакции
foreign key (transaction_id) references transaction(id)
);DELIMITER //
CREATE TRIGGER service_pay_bi
BEFORE INSERT ON service_pay
FOR EACH ROW
BEGIN
IF NEW.transaction_id IN (SELECT id FROM transaction_table WHERE type = ...) THEN #указать значение события дохода
@last_error = "service_pay table can hold only the payment transactions";
CALL non_existent(); #единственный способ прервать операцию
END IF;
END//SELECT ...
FROM tbl_1
UNION
SELECT ...
FROM tbl_2;
DECLARE size INT UNSIGNED DEFAULT ExtractingValue(xml_file, "count(//item)");
DECLARE counter INT UNSIGNED DEFAULT 1;
WHILE counter <= size DO
INSERT INTO your_table
VALUES
(
ExtractValue(xml_file, "//item[$counter]/name"),
ExtractValue(xml_file, "//item[$counter]/photo[1]"), #элементы нумеруются с 1, а не с 0;
ExtractValue(xml_file, "//item[$counter]/photo[2]") #и так для всех остальных фото
);
SET counter = counter + 1;
END WHILE;