It looks like you're trying to create an ORM-like system in C++ but struggling with handling tables of unknown structure. You could fetch column names using PRAGMA table_info(table_name); and store results dynamically in std::map<std::string, std::any>. How are you currently handling sqlite3_step() results?