MCPcopy Create free account
hub / github.com/SOCI/soci / initialize_connect_string

Method initialize_connect_string

tests/sqlite3/test-sqlite3.cpp:1077–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

mainFunction · 0.45

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected