Pull in full sqlite_modern_cpp repo for the license as it is not attached to source files

This commit is contained in:
Saood Karim
2025-08-17 08:25:37 -05:00
parent a3b174b69a
commit ed9504bd92
41 changed files with 2654 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <sqlite_modern_cpp.h>
#include <catch2/catch.hpp>
using namespace sqlite;
using namespace std;
TEST_CASE("shared connections work fine", "[shared_connection]") {
database db(":memory:");
{
auto con = db.connection();
{
database db2(con);
int test = 0;
db2 << "select 1" >> test;
REQUIRE(test == 1);
}
int test = 0;
db << "select 1" >> test;
REQUIRE(test == 1);
}
}