mirror of
https://github.com/getml/sqlgen.git
synced 2026-05-12 19:08:34 -05:00
committed by
GitHub
parent
7b5c849e02
commit
1424d29c5d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user