24 while(std::getline(in, line))
26 std::istringstream iss(line);
32 if (command.empty() || command[0] ==
'#')
35 if (command ==
"namespace")
41 else if (command ==
"create_index" || command ==
"create_unique_index")
45 index.
unique = (command ==
"create_unique_index");
54 std::istringstream column_ss(s);
58 std::string field_name;
59 if (std::getline(column_ss, field_name,
','))
63 throw Exception(
"Field not found: " + field_name);
74 compiler_options.add_index(std::move(index));
76 else if (command ==
"set_table_storage")
78 std::cerr <<
"Warning: set_table_storage is deprecated\n";
80 else if (command ==
"set_single_row")
84 compiler_options.set_single_row(table_id, value);
87 throw Exception(
"unknown command: " + command);