oatpp-postgresql icon indicating copy to clipboard operation
oatpp-postgresql copied to clipboard

Support for container CRUD operations, tested.

Open freeman-23 opened this issue 4 years ago • 0 comments

  • 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

freeman-23 avatar Jul 03 '21 06:07 freeman-23