-
-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read postgresql data on C++ #2607
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pgdata_getters will be called from C++ code only
- parameter is the sql query - returns a C++ container
- This include will be removed when the reading takes place on C++ - The only expected place to remain is on old function of trsp
- C files: marking unused code - cleanup: removing comments - _driver.h: - parameter for queries is the sql char* - Clean up: removing parameter names & comments - _driver.cpp: - c++ code read the data from the SQL queries - Adding a catch for input errors
cvvergara
force-pushed
the
read-data-on-cpp-try3
branch
from
January 25, 2024 16:16
64bba51
to
3be0767
Compare
cvvergara
force-pushed
the
read-data-on-cpp-try3
branch
from
January 31, 2024 14:13
47eef4e
to
d6585aa
Compare
Something happened on the cpplint that is not working anymore on the CI. |
Opened an issue here |
robe2
approved these changes
Feb 1, 2024
@cvvergara I encountered the following build error on my M1 MacBook Pro environment.
And changing the following was necessary to pass the build. --- a/src/cpp_common/combinations.cpp
+++ b/src/cpp_common/combinations.cpp
@@ -24,12 +24,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
********************************************************************PGR-GNU*/
-#include "cpp_common/combinations.hpp"
-
#include <map>
#include <set>
#include <deque>
#include <vector>
+#include "cpp_common/combinations.hpp"
#include "cpp_common/pgdata_getters.hpp"
#include "cpp_common/basePath_SSEC.hpp" After the build, it seems to be fine, but I will check more at tomorrow. |
This was referenced Feb 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Moving the input queries from the C code into the C++ code.
Before this change
On the C file:
process
within each C file example are very similarx
MB in memorypgr_do_function
defined on the driverOn the driver C++ file:
The ideal situation:
General steps to reach the ideal situation
This PR is step 1
In rough terms, moving the reading of the data to C++.
The sketch of the C & C++ driver files for the first step:
On the C file:
header
linked as Cprocess
within each C file will still be very similarpgr_do_function
defined on the driverOn the driver C++ file:
x
MB in memorytasks
pgdata_getters
andpgdata_fetchers
totrsp_pgget
&trsp_pgfetch
trsp_pgget
is the deprecatedpgr_trsp
functiontrsp_pgget
&trsp_pgfetch
pgdata_getters
andpgdata_fetchers
to be used directly from C++pgdata_getters
andpgdata_fetchers
pgr_do_