17 static int tutorial_interpreter(Arguments &arguments)
20 const std::string_view file_name = arguments.get_next(
"file.joedb");
22 if (arguments.missing())
24 arguments.print_help(std::cerr);
34 Command_Interpreter interpreter;
36 Blob_Reader_Command_Processor blob_reader_processor
41 Data_Manipulation_Command_Processor data_manipulation_processor
48 Writable_Command_Processor writable_processor(multiplexer, db);
50 interpreter.add_processor(blob_reader_processor);
51 interpreter.add_processor(data_manipulation_processor);
52 interpreter.add_processor(writable_processor);
54 interpreter.main_loop(std::cin, std::cout);
62int main(
int argc,
char **argv)
const Buffered_File & get_file() const
Shortcut to directly build a Client from a file name.
Write simultaneously to the database and the file (ignore schema changes)
Implement the joedb::Readable interface for a compiled database.
A writable Database constructed from a writable joedb::Buffered_File.
const joedb::Readonly_Journal & get_journal() const
int main_wrapper(int(*main)(Arguments &), int argc, char **argv)
Process command-line arguments and catch exceptions from main.