PGROUTING
3.2
|
Connecting code with postgres. More...
#include <stdbool.h>
#include "c_common/postgres_connection.h"
#include "c_common/debug_macro.h"
#include "c_common/e_report.h"
#include "c_common/time_msg.h"
#include "c_common/edges_input.h"
#include "drivers/lineGraph/lineGraph_driver.h"
Go to the source code of this file.
Functions | |
PGDLLEXPORT Datum | _pgr_linegraph (PG_FUNCTION_ARGS) |
postgres_connection.h More... | |
PG_FUNCTION_INFO_V1 (_pgr_linegraph) | |
static void | process (char *edges_sql, bool directed, Line_graph_rt **result_tuples, size_t *result_count) |
Connecting code with postgres.
This file is fully documented for understanding how the postgres connectinon works
TODO Remove unnecessary comments before submiting the function. some comments are in form of PGR_DBG message
Definition in file lineGraph.c.
PGDLLEXPORT Datum _pgr_linegraph | ( | PG_FUNCTION_ARGS | ) |
Definition at line 133 of file lineGraph.c.
References Line_graph_rt::cost, if(), PGR_DBG, process(), Line_graph_rt::reverse_cost, Line_graph_rt::source, and Line_graph_rt::target.
PG_FUNCTION_INFO_V1 | ( | _pgr_linegraph | ) |
|
static |
Definition at line 68 of file lineGraph.c.
References do_pgr_lineGraph(), PGR_DBG, pgr_get_edges(), pgr_global_report(), pgr_SPI_connect(), pgr_SPI_finish(), and time_msg().
Referenced by _pgr_linegraph().