![]() |
vrpRouting
0.3
|
#include <stdbool.h>
#include <time.h>
#include "c_common/postgres_connection.h"
#include <utils/date.h>
#include <utils/datetime.h>
#include "c_common/get_check_data.h"
#include "c_common/arrays_input.h"
#include "catalog/pg_type.h"
#include "c_common/debug_macro.h"
#include "c_types/typedefs.h"
Go to the source code of this file.
Functions | |
static void | check_any_integer_type (Column_info_t info) |
static void | check_any_integerarray_type (Column_info_t info) |
static void | check_any_numerical_type (Column_info_t info) |
static void | check_char_type (Column_info_t info) |
static void | check_integer_type (Column_info_t info) |
static void | check_integerarray_type (Column_info_t info) |
static void | check_interval_type (Column_info_t info) |
static void | check_jsonb_type (Column_info_t info) |
static void | check_text_type (Column_info_t info) |
static void | check_timestamp_type (Column_info_t info) |
bool | column_found (int colNumber) |
Check whether the colNumber represent any specific column or NULL (SPI_ERROR_NOATTRIBUTE). More... | |
static bool | fetch_column_info (Column_info_t *info) |
Amount | get_Amount (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, Amount opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TravelCost | get_Cost (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TravelCost opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
Distance | get_Distance (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, Distance opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
Duration | get_Duration (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, Duration opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
Id | get_Id (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, Id opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
Idx | get_Idx (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, Idx opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
char | get_Kind (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, char opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
MatrixIndex | get_MatrixIndex (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, MatrixIndex opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
PAmount | get_PositiveAmount (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, PAmount opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TInterval | get_PositiveTInterval (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TInterval opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TInterval | get_PositiveTInterval_plain (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TInterval opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TTimestamp | get_PositiveTTimestamp (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TTimestamp opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TTimestamp | get_PositiveTTimestamp_plain (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TTimestamp opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
Priority | get_Priority (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, Priority opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
StepType | get_StepType (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, StepType opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TInterval | get_TInterval (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TInterval opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TInterval | get_TInterval_plain (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TInterval opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TTimestamp | get_TTimestamp (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TTimestamp opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
TTimestamp | get_TTimestamp_plain (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, TTimestamp opt_value) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist More... | |
void | pgr_fetch_column_info (Column_info_t info[], int info_size) |
Function tells expected type of each column and then check the correspondence type of each column. More... | |
static int64_t | spi_getBigInt (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
int64_t * | spi_getBigIntArr (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, size_t *the_size) |
Function returns the values of specified columns in array. More... | |
int64_t * | spi_getBigIntArr_allowEmpty (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, size_t *the_size) |
Function returns the values of specified columns in array. More... | |
char | spi_getChar (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, char default_value) |
get value of specified column in char type. More... | |
Coordinate | spi_getCoordinate (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, Coordinate opt_value) |
get a coordinate value More... | |
double | spi_getFloat8 (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
gets value of specified column in double type. More... | |
static int32_t | spi_getInt (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
static TInterval | spi_getInterval (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
int32_t | spi_getMaxTasks (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
gets the vehicle max tasks value More... | |
int64_t * | spi_getPositiveBigIntArr_allowEmpty (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, size_t *the_size) |
Function returns the values of specified columns in array. More... | |
uint32_t * | spi_getPositiveIntArr_allowEmpty (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, size_t *the_size) |
Function returns the values of specified columns in array. More... | |
char * | spi_getText (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
under development More... | |
static TTimestamp | spi_getTimeStamp (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info) |
TTimestamp | timestamp_without_timezone (TTimestamp timestamp) |
Steps: 1) Similar to: https://doxygen.postgresql.org/backend_2utils_2adt_2timestamp_8c.html#a52973f03ed8296b632d4028121f7e077 2) Using time.h to convert. More... | |
|
static |
Definition at line 92 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 115 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 127 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 58 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 82 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 104 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 44 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 74 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 66 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
|
static |
Definition at line 142 of file get_check_data.c.
References Column_info_t::name, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
bool column_found | ( | int | colNumber | ) |
Check whether the colNumber represent any specific column or NULL (SPI_ERROR_NOATTRIBUTE).
Definition at line 900 of file get_check_data.c.
Referenced by check_pairs(), db_get_vehicles(), fetch_breaks(), fetch_column_info(), fetch_euclidean(), fetch_jobs(), fetch_raw(), fetch_shipments(), fetch_timestamps(), fetch_vehicles(), get_Amount(), get_Cost(), get_Distance(), get_Duration(), get_Id(), get_Idx(), get_Kind(), get_MatrixIndex(), get_PositiveAmount(), get_Priority(), get_StepType(), get_TInterval(), get_TInterval_plain(), get_TTimestamp(), get_TTimestamp_plain(), and spi_getCoordinate().
|
static |
Definition at line 152 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), Column_info_t::name, PGR_DBG, Column_info_t::strict, and Column_info_t::type.
Referenced by pgr_fetch_column_info().
Amount get_Amount | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
Amount | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get Amount from data
Definition at line 619 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getBigInt().
Referenced by get_PositiveAmount().
TravelCost get_Cost | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TravelCost | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get TravelCost from data
exceptions when the value is negative
Definition at line 704 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), Column_info_t::name, and spi_getInt().
Referenced by fetch_matrix().
Distance get_Distance | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
Distance | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get Distance from data
exceptions when the value is negative
Definition at line 771 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), Column_info_t::name, and spi_getInt().
Duration get_Duration | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
Duration | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get Duration from data
exceptions when the value is negative
Definition at line 681 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), Column_info_t::name, and spi_getInt().
Referenced by fetch_breaks(), fetch_jobs(), fetch_matrix(), fetch_shipments(), fetch_time_windows(), and fetch_vehicles().
Id get_Id | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
Id | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get Id from data
Definition at line 562 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getBigInt().
Referenced by fetch_euclidean(), fetch_plain(), fetch_raw(), fetch_timestamps(), and get_Idx().
Idx get_Idx | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
Idx | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get Idx from data
exceptions when the value is not positive
Definition at line 581 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), get_Id(), and Column_info_t::name.
Referenced by fetch_breaks(), fetch_jobs(), fetch_shipments(), fetch_time_windows(), and fetch_vehicles().
char get_Kind | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
char | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get Kind from data
Definition at line 725 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getChar().
Referenced by fetch_time_windows().
MatrixIndex get_MatrixIndex | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
MatrixIndex | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get MatrixIndex from data
exceptions when the value is not positive
Definition at line 658 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), Column_info_t::name, and spi_getBigInt().
Referenced by fetch_jobs(), fetch_matrix(), fetch_shipments(), and fetch_vehicles().
PAmount get_PositiveAmount | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
PAmount | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get positive Amount from data
exceptions when the value is negative
Definition at line 638 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), get_Amount(), and Column_info_t::name.
Referenced by fetch_euclidean(), fetch_raw(), and fetch_timestamps().
TInterval get_PositiveTInterval | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TInterval | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets an interval value from postgres type INTERVAL > 0
exceptions when the value is negative
Definition at line 511 of file get_check_data.c.
References get_TInterval(), and Column_info_t::name.
Referenced by fetch_breaks(), fetch_jobs(), fetch_matrix(), fetch_shipments(), and fetch_timestamps().
TInterval get_PositiveTInterval_plain | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TInterval | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets an interval value from ANY-INTEGER > 0
exceptions when the value is negative
Definition at line 546 of file get_check_data.c.
References get_TInterval_plain(), and Column_info_t::name.
Referenced by fetch_euclidean(), fetch_plain(), and fetch_raw().
TTimestamp get_PositiveTTimestamp | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TTimestamp | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets a timestamp value from postgres type TIMESTAMP >= 1970-01-01 00:00:00
exceptions when the value is negative
Definition at line 476 of file get_check_data.c.
References get_TTimestamp(), and Column_info_t::name.
Referenced by fetch_time_windows(), and fetch_vehicles().
TTimestamp get_PositiveTTimestamp_plain | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TTimestamp | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets a timestamp value from ANY-INTEGER > 0
exceptions when the value is negative
Definition at line 441 of file get_check_data.c.
References get_TTimestamp_plain(), and Column_info_t::name.
Priority get_Priority | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
Priority | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get Priority from data
exceptions when the value is negative
Definition at line 747 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), Column_info_t::name, and spi_getInt().
Referenced by fetch_jobs(), and fetch_shipments().
StepType get_StepType | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
StepType | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
get StepType from data
Definition at line 596 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getInt().
TInterval get_TInterval | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TInterval | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets an interval value from postgres type INTERVAL
Definition at line 492 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getInterval().
Referenced by fetch_timestamps(), and get_PositiveTInterval().
TInterval get_TInterval_plain | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TInterval | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets an interval value from ANY-INTEGER
Definition at line 527 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getBigInt().
Referenced by fetch_euclidean(), fetch_raw(), and get_PositiveTInterval_plain().
TTimestamp get_TTimestamp | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TTimestamp | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets a timestamp value from postgres type TIMESTAMP
Definition at line 457 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getTimeStamp().
Referenced by fetch_timestamps(), and get_PositiveTTimestamp().
TTimestamp get_TTimestamp_plain | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
TTimestamp | opt_value | ||
) |
@params [in] tuple @params [in] tupdesc @params [in] info about the column been fetched @params [in] opt_value default value when the column does not exist
gets a timestamp value from ANY-INTEGER
Definition at line 422 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getBigInt().
Referenced by fetch_euclidean(), fetch_raw(), and get_PositiveTTimestamp_plain().
void pgr_fetch_column_info | ( | Column_info_t | info[], |
int | info_size | ||
) |
Function tells expected type of each column and then check the correspondence type of each column.
Definition at line 905 of file get_check_data.c.
References ANY_INTEGER, ANY_INTEGER_ARRAY, ANY_NUMERICAL, CHAR1, check_any_integer_type(), check_any_integerarray_type(), check_any_numerical_type(), check_char_type(), check_integer_type(), check_integerarray_type(), check_interval_type(), check_jsonb_type(), check_text_type(), check_timestamp_type(), fetch_column_info(), INTEGER, INTEGER_ARRAY, INTERVAL, JSONB, TEXT, and TIMESTAMP.
Referenced by db_get_breaks(), db_get_jobs(), db_get_matrix(), db_get_shipments(), db_get_time_windows(), db_get_vehicles(), get_matrixRows_general(), get_timeMultipliersGeneral(), and pgr_get_pd_orders_general().
|
static |
Definition at line 203 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, and Column_info_t::type.
Referenced by get_Amount(), get_Id(), get_MatrixIndex(), get_TInterval_plain(), and get_TTimestamp_plain().
int64_t* spi_getBigIntArr | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
size_t * | the_size | ||
) |
Function returns the values of specified columns in array.
Definition at line 336 of file get_check_data.c.
References Column_info_t::colNumber, and pgr_get_bigIntArray().
int64_t* spi_getBigIntArr_allowEmpty | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
size_t * | the_size | ||
) |
Function returns the values of specified columns in array.
Definition at line 354 of file get_check_data.c.
References Column_info_t::colNumber, and pgr_get_bigIntArray_allowEmpty().
Referenced by fetch_euclidean(), fetch_raw(), fetch_timestamps(), and spi_getPositiveBigIntArr_allowEmpty().
char spi_getChar | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
char | default_value | ||
) |
get value of specified column in char type.
Definition at line 298 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, Column_info_t::strict, and Column_info_t::type.
Referenced by get_Kind().
Coordinate spi_getCoordinate | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
Coordinate | opt_value | ||
) |
get a coordinate value
Definition at line 819 of file get_check_data.c.
References Column_info_t::colNumber, column_found(), and spi_getFloat8().
Referenced by fetch_euclidean().
double spi_getFloat8 | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info | ||
) |
gets value of specified column in double type.
Definition at line 782 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, and Column_info_t::type.
Referenced by fetch_euclidean(), fetch_raw(), fetch_timestamps(), fetch_vehicles(), and spi_getCoordinate().
|
static |
Definition at line 178 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, and Column_info_t::type.
Referenced by get_Cost(), get_Distance(), get_Duration(), get_Priority(), get_StepType(), and spi_getMaxTasks().
|
static |
Definition at line 253 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, PGR_DBG, and Column_info_t::type.
Referenced by get_TInterval().
int32_t spi_getMaxTasks | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info | ||
) |
gets the vehicle max tasks value
Definition at line 320 of file get_check_data.c.
References spi_getInt().
Referenced by fetch_vehicles().
int64_t* spi_getPositiveBigIntArr_allowEmpty | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
size_t * | the_size | ||
) |
Function returns the values of specified columns in array.
Definition at line 377 of file get_check_data.c.
References spi_getBigIntArr_allowEmpty().
Referenced by fetch_jobs(), fetch_shipments(), and fetch_vehicles().
uint32_t* spi_getPositiveIntArr_allowEmpty | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info, | ||
size_t * | the_size | ||
) |
Function returns the values of specified columns in array.
Definition at line 393 of file get_check_data.c.
References Column_info_t::colNumber, and pgr_get_positiveIntArray_allowEmpty().
Referenced by fetch_jobs(), fetch_shipments(), and fetch_vehicles().
char* spi_getText | ( | HeapTuple * | tuple, |
TupleDesc * | tupdesc, | ||
Column_info_t | info | ||
) |
under development
gets string representation of the value of specified column.
Definition at line 832 of file get_check_data.c.
References Column_info_t::colNumber.
Referenced by fetch_breaks(), fetch_jobs(), fetch_shipments(), and fetch_vehicles().
|
static |
Definition at line 231 of file get_check_data.c.
References Column_info_t::colNumber, Column_info_t::name, timestamp_without_timezone(), and Column_info_t::type.
Referenced by get_TTimestamp().
TTimestamp timestamp_without_timezone | ( | TTimestamp | timestamp | ) |
Steps: 1) Similar to: https://doxygen.postgresql.org/backend_2utils_2adt_2timestamp_8c.html#a52973f03ed8296b632d4028121f7e077 2) Using time.h to convert.
Converts timestamp to timestamp without timezone.
from time.h struct tm timezone
Definition at line 847 of file get_check_data.c.
Referenced by process(), and spi_getTimeStamp().