Code Monkey home page Code Monkey logo

oatpp-postgresql's Introduction

oatpp-postgresql Build Status

Oat++ ORM adapter for PostgreSQL.
Note: this alpha version, which means that not all PostgreSQL data-types are supported. See the list of Supported Data Types.

More about Oat++:

Build And Install

Note: you need to install the main oatpp module and PostgreSQL dev package first.

  • Clone this repository.
  • In the root of the repository run:
    mkdir build && cd build
    cmake ..
    make install

API

Detailed documentation on Oat++ ORM you can find here.

Connect to Database

All you need to start using oatpp ORM with PostgreSQL is to create oatpp::postgresql::Executor and provide it to your DbClient.

#include "db/MyClient.hpp"
#include "oatpp-postgresql/orm.hpp"

class AppComponent {
public:
  
  /**
   * Create DbClient component.
   */
  OATPP_CREATE_COMPONENT(std::shared_ptr<db::MyClient>, myDatabaseClient)([] {
    /* Create database-specific ConnectionProvider */
    auto connectionProvider = std::make_shared<oatpp::postgresql::ConnectionProvider>("<connection-string>");    
  
    /* Create database-specific ConnectionPool */
    auto connectionPool = oatpp::postgresql::ConnectionPool::createShared(connectionProvider, 
                                                                          10 /* max-connections */, 
                                                                          std::chrono::seconds(5) /* connection TTL */);
    
    /* Create database-specific Executor */
    auto executor = std::make_shared<oatpp::postgresql::Executor>(connectionPool);
  
    /* Create MyClient database client */
    return std::make_shared<MyClient>(executor);
  }());

};

Supported Data Types

Type Supported In Array
INT2 + +
INT4 + +
INT8 + +
TIMESTAMP + +
TEXT + +
VARCHAR + +
FLOAT4 + +
FLOAT8 + +
BOOL + +
UUID + +
Other Types - -

oatpp-postgresql's People

Contributors

acidtonic avatar autoantwort avatar dsmyth avatar lganzzzo avatar toge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

oatpp-postgresql's Issues

Large Object Support?

Curious if there are any plans for large object support? Normally I'd just store in the filesystem with a checksum in the DB but I have a need for the streaming/seeking abilities that come with the large object api. I don't even need all that fancy support here only basic crud and from my other tools I can do the rest.

I see TEXT support but that's 1GB limited and I'm doing neural network stuff that easily eclipses that with larger models so I truly need large object support or perhaps another document db to go alongside.

Wanted to ask in case the docs were out of date. I also lurk in the Gitter chat and can ask there if collaboration is needed. Thanks!

Build fails! What are the PostgreSQL requirements?

Hi folks,
Thank you so much for providing and maintaining this repository. I started building this oatpp module and got stuck at this place.

mkdir tmp && cd tmp
git clone --depth=1 https://github.com/oatpp/oatpp-postgresql
cd oatpp-postgresql/
mkdir build && cd build
cmake -DOATPP_DISABLE_ENV_OBJECT_COUNTERS=ON -DCMAKE_BUILD_TYPE=Release -DOATPP_BUILD_TESTS=OFF ..

Build feedback:

$ cmake -DOATPP_DISABLE_ENV_OBJECT_COUNTERS=ON -DCMAKE_BUILD_TYPE=Release -DOATPP_BUILD_TESTS=OFF ..
Finding oatpp in location=INSTALLED
OATPP_INCLUDE=/usr/local/include/oatpp-1.3.0/oatpp
OATPP_TEST_INCLUDE=/usr/local/include/oatpp-1.3.0/oatpp

############################################################################
## oatpp-postgresql module. Resolving dependencies...

CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR) (found
  version "15.1")
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.18/Modules/FindPostgreSQL.cmake:248 (find_package_handle_standard_args)
  CMakeLists.txt:95 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/begerad/git/github/dancesWithCycles/oatpp-ex-postgresql/tmp/oatpp-postgresql/build/CMakeFiles/CMakeOutput.log".

The development host is a GNU/Debian Buster with the following environment.

$ sudo apt install libpq-dev libpq5 libpqxx-dev --no-install-recommends
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libpqxx-dev is already the newest version (6.4.5-2).
libpq-dev is already the newest version (15.1-1.pgdg110+1).
libpq5 is already the newest version (15.1-1.pgdg110+1).
0 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.

PostgreSQL version:

$ psql --version
psql (PostgreSQL) 13.9 (Debian 13.9-0+deb11u1)

Any idea, why this module is not resolving dependencies?

Is here a certain (newer than version 13.9) version of PostgreSQL required?

Cheers!

API question: other types

In file: oatpp-postgresql/Types.hpp

Question

What is your roadmap for supporting other types? I'm particularly interested in json, jsonb and arrays (of floats).

Thanks -- Don

Support for JSON and JSONB columns

Hey there.

Providing support for JSON and JSONB columns would be really helpful. For the ORM I would propose to be able to Map to DTOs, similar as in the ENDPOINTs or also a mapping to Fields<String>.
Right now it is necessary to map these columns to String and then parse them manually in some way.

Kind regards.

Can't build oatpp-postgres on windows mingw-w64 toolchain.

Can't build oatpp-postgres on windows mingw-w64 toolchain. I get lots of linker errors to the tune of 187mb error log. Here are a few to capture the spirit of the errors.

Steps to reproduce (I can be more detailed if needed) -> Windows -> msys2 -> pacman -S build-essential mingw-w64-x86_64-toolchain cmake git -> checkout oatpp -> build/install it using -G"MinGW Makefiles" or -G"MSYS Makefiles" -> build oatpp-postgresql and when the tests are built the following is produced...

I tried using postgresql from the offical pacman repository for mingw-w64 and thought maybe building postgresql from source with the same w64-toolchain instead would work but neither option changed anything. I also toyed with changing CXX EXTENSIONS to on/off between the projects and update the std flag for C++11 to c++14/c++17 and none of them built. I also tried adding -stdc++ to the build flags, and forcing the g++ compiler for linking.... Also tried using objdump/file/nm to inspect the .a files only to find they all were x86-64 as intended and nothing was 32-bit. All had the same seh/sjlj settings and endianness. I'm stuck :(

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__cC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__c
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__class6
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__class6Vecto
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS4_9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS9_7__class4UuidEEENS4_7__class6VectorISD_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type9PrimitiveINS1_10postgresql7mapping4type10UuidObjectENS8_7__class4UuidEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2EEC1IJ
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSAC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EES
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type9PrimitiveIyNS4_7__class6UInt64EEESaIS8_EESaISA_ELN9__gnu_cxx12_Lock_policyE2EEC1IJEEESB_DpOT_[_ZNSt23_Sp_counted_ptr_inpl
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEENS8_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEESaISG_EES
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEESaISE_EESaISG_ELN9__gnu_cx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_7BooleanENS4_7__class6VectorIS6_EEEENS8_ISA_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISCC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_IC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIdNS4_7__class7Float64EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_c
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISCC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_IC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIfNS4_7__class7Float32EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_c
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIxNS4_7__class5Int64EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIiNS4_7__class5Int32EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEE
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEENSA_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEENSA_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_9PrimitiveIsNS4_7__class5Int16EEENS7_6VectorIS9_EEEENSA_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENSC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEEC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEENS8_I
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEENS8_ISE_EEEESaISG_EESa
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEENS8_ISC_EEEESaISE_EESaISG_ELN9__gnu_cxx
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_INS4_6StringENS4_7__class6VectorIS6_EEEENS8_ISA_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2E
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_9PrimitiveIyNS5_7__class6UInt64EEENS8_6VectorISA_EEEESaISD_EESaISF_ELN9__
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt16allocator_traitsISaISt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS5_9PrimitiveIyNS5_7__class6UInt64EEENS8_6VectorISA_EEEESaISD_EESaISF_ELN9_
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../src/liboatpp-postgresql.a(Deserializer.cpp.obj):Deserializer.c:(.text$_ZNSt23_Sp_counted_ptr_inplaceISt6vectorIN5oatpp4data7mapping4type19VectorObjectWrapperINS4_9PrimitiveIyNS4_7__class6UInt64EEENS7_6VectorIS9_EEEESaISC_EESaISE_ELN9__gnu_cxx12_Lock_policyE2

insert DTO type ENUM as string occurred encode problem

I have a ENUM type as string, when I tried to insert it int to DB. Pg report an error "ERROR: invalid byte sequence for encoding "UTF8": 0x00"

It seems like oat++'s ENUM::String have an "\0" at the end of String, but PG's encoding doesn't recognized this char.

One noob solution of this problem is replace "\0" to "" at every String, but I am wondering if there is some more proper solution?

[QUESTION] database macros thread-safe ?

Hi, i have an endpoint that calls the bellow function, if a don't use the mutex, the service stops, all subsequent calls to the database freezes (the rest works). If i do multiple calls to the database inside the same methods they are not thread-safe ?
I tested using Apache benchmark using two connections (ab -n 300 -c2 .....).

oatpp::Object<AdminRoomsProgrammingDto> AdminServices::getRoomProgrammingById(const oatpp::UInt32 &whitelabelid,
                                                                              const oatpp::UInt32 &roomid,
                                                                              const oatpp::UInt32 &id, int &error)
{
    std::lock_guard<std::mutex> lock(dbMutex); <==
    auto programming = oatpp::Object<AdminRoomsProgrammingDto>::createShared();    
    error = 0;
    try {        
        auto dbResult = m_database->getRoomProgrammingById(whitelabelid, roomid, id);
        if (dbResult != nullptr && dbResult->isSuccess())
        {            
            auto items = dbResult->fetch<oatpp::Vector<oatpp::Object<AdminRoomsProgrammingDto>>>();
            if (items != nullptr && !items->empty())
            {
                programming = items[0];                
                auto dbItem = m_database->getAdminRoomProgrammingDetail(whitelabelid, roomid, programming->programmingid);
                if (dbItem->isSuccess())
                {
                    auto dbItems = dbItem->fetch<oatpp::Vector<oatpp::Object<AdminRoomDetailDto>>>();
                    programming->matchprizes = dbItems;
                }
                auto dbAc = m_database->getRoomProgrammingAc(whitelabelid, roomid, programming->programmingid);
                if (dbAc->isSuccess())
                {                    
                    auto dbAcItems = dbAc->fetch<oatpp::Vector<oatpp::Object<AcItemDto>>>();
                    if (dbAcItems->size() > 0)
                    {
                        programming->acitem = dbAcItems[0];
                    }
                }
            }
        } else {
            error = -2;
        }
    } catch (const std::exception &e) {
        error = -1;
        OATPP_LOGD("SERVICES", "%s", e.what());
    } catch (...) {
        error = -1;
        OATPP_LOGD("SERVICES","Unknow exception");
    }
    return programming;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.