sql stuff in

This commit is contained in:
2025-12-23 22:24:21 -06:00
parent 1fa0913f3c
commit 50cb5c6473
2 changed files with 52 additions and 1 deletions

View File

@@ -8,7 +8,8 @@ int main (int argc, char *argv[]) {
if(log_path.empty()) throw std::runtime_error("your dumbass can't put in a path");
std::string clickhouse_username = config["clickhouse"]["username"].value_or("");
std::string clickouse_password = config["clickhouse"]["password"].value_or("");
if(clickhouse_username.empty() || clickouse_password.empty()) throw std::runtime_error("put the creds in the right place idiot");
std::string clickhouse_db = config["clickhouse"]["db"].value_or("");
if(clickhouse_username.empty() || clickouse_password.empty() || clickhouse_db.empty()) throw std::runtime_error("put the creds in the right place idiot");
return 0;
}