pg_async
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pg_types.hpp
Go to the documentation of this file.
1 /*
2  * pg_types.hpp
3  *
4  * Created on: Jul 24, 2015
5  * Author: zmij
6  */
7 
8 #ifndef LIB_PG_ASYNC_INCLUDE_TIP_DB_PG_PG_TYPES_HPP_
9 #define LIB_PG_ASYNC_INCLUDE_TIP_DB_PG_PG_TYPES_HPP_
10 
11 #include <iosfwd>
12 
13 namespace tip {
14 namespace db {
15 namespace pg {
16 
17 namespace oids {
18 
19 namespace type {
20 enum oid_type {
21  boolean = 16,
22  bytea = 17,
23  char_ = 18,
24  name = 19,
25  int8 = 20,
26  int2 = 21,
28  int4 = 23,
29  regproc = 24,
30  text = 25,
31  oid = 26,
32  tid = 27,
33  xid = 28,
34  cid = 29,
35  oid_vector = 30,
36  json = 114,
37  xml = 142,
38  pg_node_tree = 194,
40  point = 600,
41  lseg = 601,
42  path = 602,
43  box = 603,
44  polygon = 604,
45  line = 628,
46  float4 = 700,
47  float8 = 701,
48  abstime = 702,
49  reltime = 703,
50  tinterval = 704,
51  unknown = 705,
52  circle = 718,
53  cash = 790,
54  macaddr = 829,
55  inet = 869,
56  cidr = 650,
57  int2_array = 1005,
58  int4_array = 1007,
59  text_array = 1009,
60  oid_array = 1028,
61  float4_array = 1021,
62  acl_item = 1033,
63  cstring_array = 1263,
64  bpchar = 1042,
65  varchar = 1043,
66  date = 1082,
67  time = 1083,
68  timestamp = 1114,
69  timestamptz = 1184,
70  interval = 1186,
71  timetz = 1266,
72  bit = 1560,
73  varbit = 1562,
74  numeric = 1700,
75  refcursor = 1790,
76  regprocedure = 2202,
77  regoper = 2203,
78  regoperator = 2204,
79  regclass = 2205,
80  regtype = 2206,
81  regrole = 4096,
82  regtypearray = 2211,
83  uuid = 2950,
84  lsn = 3220,
85  tsvector = 3614,
86  gtsvector = 3642,
87  tsquery = 3615,
88  regconfig = 3734,
89  regdictionary = 3769,
90  jsonb = 3802,
91  int4_range = 3904,
92  record = 2249,
93  record_array = 2287,
94  cstring = 2275,
95  any = 2276,
96  any_array = 2277,
97  void_ = 2278,
98  trigger = 2279,
99  evttrigger = 3838,
101  internal = 2281,
102  opaque = 2282,
103  any_element = 2283,
105  any_enum = 3500,
106  fdw_handler = 3115,
107  any_range = 3831
108 };
109 
110 std::ostream&
111 operator << (std::ostream& out, oid_type val);
112 std::istream&
113 operator >> (std::ostream& in, oid_type& val);
114 
115 
116 } // namespace type
117 namespace type_class {
118 enum code {
119  base = 'b',
120  composite = 'c',
121  domain = 'd',
122  enumerated = 'e',
123  pseudo = 'p',
124  range = 'r'
125 };
126 } // namespace type_class
127 namespace type_category {
128 enum code {
129  invalid = 0,
130  array = 'A',
131  boolean = 'B',
132  composite = 'C',
133  datetime = 'D',
134  enumeration = 'E',
135  geometric = 'G',
136  network = 'I',
137  numeric = 'N',
138  pseudotype = 'P',
140  string = 'S',
141  timespan = 'T',
142  user = 'U',
143  bitstring = 'V',
144  unknown = 'X'
145 };
146 } // type_category
147 
148 } // namespace oids
149 
150 } // namespace pg
151 } // namespace db
152 } // namespace tip
153 
154 
155 #endif /* LIB_PG_ASYNC_INCLUDE_TIP_DB_PG_PG_TYPES_HPP_ */
Binary data, matches PostgreSQL bytea type.
Definition: common.hpp:196
std::ostream & operator<<(std::ostream &out, oid_type val)
std::istream & operator>>(std::ostream &in, oid_type &val)