Split up the parsing module

This commit is contained in:
Dr. Patrick Urbanke
2025-04-09 09:36:17 +02:00
parent 3b7c88c73b
commit 2beeb9fe8d
23 changed files with 83 additions and 77 deletions

View File

@@ -1,8 +1,8 @@
#include <gtest/gtest.h>
#include <sqlgen.hpp>
#include <sqlgen/parsing/to_select_from.hpp>
#include <sqlgen/sqlite.hpp>
#include <sqlgen/transpilation/to_select_from.hpp>
namespace test_to_select_from {
@@ -14,7 +14,8 @@ struct TestTable {
};
TEST(sqlite, test_to_select_from) {
const auto select_from_stmt = sqlgen::parsing::to_select_from<TestTable>();
const auto select_from_stmt =
sqlgen::transpilation::to_select_from<TestTable>();
const auto conn = sqlgen::sqlite::connect().value();
const auto expected =
R"(SELECT "field1", "field2", "id", "nullable" FROM "TestTable";)";