oatpp-postgresql
oatpp-postgresql copied to clipboard
Support for container CRUD operations, tested.
- IntTest.cpp would not compile on windows without the #define NOMINMAX
- Usage for the Container CRUD operations is as follows. In the query where the expansion is needed, add %array%. This will the variables in the array like this ($1), ($2)...; the parenthesis are part of postgres syntax. Now if the object in the array is complex and requires further expansion, then this syntax is used: %array :member1, :member2%. This will be expanded like this ($1,$2), ($3,$4)... where $1 and $2 point to array[i].member1 and array[i].member2 respectively. For sample usage see the ContainerTest.cpp