36 #ifndef __TEMPORAL_PARSER_H__ 37 #define __TEMPORAL_PARSER_H__ 40 #include <catalog/pg_type.h> 55 extern bool p_comma(
char **str);
bool p_oparen(char **str)
Input an opening parenthesis from the buffer.
Definition: temporal_parser.c:140
Structure to represent periods.
Definition: timetypes.h:52
bool p_obrace(char **str)
Input an opening brace from the buffer.
Definition: temporal_parser.c:80
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: temporal.h:241
TimestampSet * timestampset_parse(char **str)
Parse a timestamp set value from the buffer.
Definition: temporal_parser.c:375
bool p_cbracket(char **str)
Input a closing bracket from the buffer.
Definition: temporal_parser.c:125
bool p_comma(char **str)
Input a comma from the buffer.
Definition: temporal_parser.c:170
Basic functions for temporal types of any subtype.
bool p_cparen(char **str)
Input a closing parenthesis from the buffer.
Definition: temporal_parser.c:155
Structure to represent period sets.
Definition: timetypes.h:84
Period * period_parse(char **str, bool make)
Parse a period value from the buffer.
Definition: temporal_parser.c:343
Structure to represent temporal boxes.
Definition: tbox.h:53
Functions for time types based on TimestampTz, that is, TimestampSet, Period, and PeriodSet...
void p_whitespace(char **str)
Input a white space from the buffer.
Definition: temporal_parser.c:55
bool p_obracket(char **str)
Input an opening bracket from the buffer.
Definition: temporal_parser.c:110
Structure to represent timestamp sets.
Definition: timetypes.h:73
void ensure_end_input(char **str, bool end)
Ensure there is no more input excepted white spaces.
Definition: temporal_parser.c:65
Temporal * temporal_parse(char **str, Oid basetype)
Parse a temporal value from the buffer (dispatch function)
Definition: temporal_parser.c:610
TimestampTz timestamp_parse(char **str)
Parse a timestamp value from the buffer.
Definition: temporal_parser.c:324
TInstant * tinstant_parse(char **str, Oid basetype, bool end, bool make)
Parse a temporal instant value from the buffer.
Definition: temporal_parser.c:454
bool p_cbrace(char **str)
Input a closing brace from the buffer.
Definition: temporal_parser.c:95
PeriodSet * periodset_parse(char **str)
Parse a period set value from the buffer.
Definition: temporal_parser.c:409
Datum basetype_parse(char **str, Oid basetype)
Parse a base value from the buffer.
Definition: temporal_parser.c:203
TBOX * tbox_parse(char **str)
Parse a temporal box value from the buffer.
Definition: temporal_parser.c:245
double double_parse(char **str)
Input a double from the buffer.
Definition: temporal_parser.c:188
Structure to represent temporal values of instant subtype.
Definition: temporal.h:253