MCPcopy Create free account
hub / github.com/SqliteModernCpp/sqlite_modern_cpp / main

Function main

tests/exception_dont_execute.cc:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10int main() {
11 database db(":memory:");
12 db << "CREATE TABLE person (id integer primary key not null, name TEXT not null);";
13
14 try {
15 auto stmt = db << "INSERT INTO person (id,name) VALUES (?,?)";
16 throw 1;
17 } catch (int) {
18 }
19 exit(EXIT_SUCCESS);
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected