| 1075 | test_context() = default; |
| 1076 | |
| 1077 | bool initialize_connect_string(std::string argFromCommandLine) override |
| 1078 | { |
| 1079 | // Unlike most other backends, we have a reasonable default value for |
| 1080 | // the connection string, so initialize it with it to use in-memory |
| 1081 | // database if nothing is specified on the command line. |
| 1082 | if (argFromCommandLine.empty()) |
| 1083 | { |
| 1084 | // Enable FKs by default to make SQLite behaviour more compatible |
| 1085 | // with the other backends. |
| 1086 | argFromCommandLine = "db=:memory: foreign_keys=on"; |
| 1087 | } |
| 1088 | |
| 1089 | return test_context_base::initialize_connect_string(argFromCommandLine); |
| 1090 | } |
| 1091 | |
| 1092 | std::string get_backend_name() const override |
| 1093 | { |
no test coverage detected