Put the literals into a separate namespace; resolves #31 (#32)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2025-07-23 22:32:26 +02:00
committed by GitHub
parent 7b5c849e02
commit 1424d29c5d
100 changed files with 394 additions and 124 deletions
+2
View File
@@ -105,6 +105,7 @@ Example of thread-safe usage with monadic style:
```cpp
using namespace sqlgen;
using namespace sqlgen::literals;
// Create pool
const auto pool = make_connection_pool<postgres::Connection>(config, credentials);
@@ -133,6 +134,7 @@ Sessions are managed through RAII (Resource Acquisition Is Initialization) and s
```cpp
using namespace sqlgen;
using namespace sqlgen::literals;
// Using monadic style for session management with exec
session(pool)