1 // Written in D programming language
2 /**
3 *   PostgreSQL major types oids.
4 *
5 *   Copyright: © 2014 DSoftOut
6 *   License: Subject to the terms of the MIT license, as written in the included LICENSE file.
7 *   Authors: NCrashed <ncrashed@gmail.com>
8 */
9 module pgator.db.pq.types.oids;
10 
11 import derelict.pq.pq;
12 
13 enum PQType : Oid
14 {
15     Bool = 16,
16     ByteArray = 17,
17     Char = 18,
18     Name = 19,
19     Int8 = 20,
20     Int2 = 21,
21     Int2Vector = 22,
22     Int4 = 23,
23     RegProc = 24,
24     Text = 25,
25     Oid = 26,
26     Tid = 27,
27     Xid = 28,
28     Cid = 29,
29     OidVector = 30,
30 
31     AccessControlList = 1033,
32     TypeCatalog = 71,
33     AttributeCatalog = 75,
34     ProcCatalog = 81,
35     ClassCatalog = 83,
36     
37     Json = 114,
38     Xml = 142,
39     NodeTree = 194,
40     StorageManager = 210,
41     
42     Point = 600,
43     LineSegment = 601,
44     Path = 602,
45     Box = 603,
46     Polygon = 604,
47     Line = 628,
48     
49     Float4 = 700,
50     Float8 = 701,
51     AbsTime = 702,
52     RelTime = 703,
53     Interval = 704,
54     Unknown = 705,
55     
56     Circle = 718,
57     Money = 790,
58     MacAddress = 829,
59     HostAddress = 869,
60     NetworkAddress = 650,
61     
62     FixedString = 1042,
63     VariableString = 1043,
64     
65     Date = 1082,
66     Time = 1083,
67     TimeStamp = 1114,
68     TimeStampWithZone = 1184,
69     TimeInterval = 1186,
70     TimeWithZone = 1266,
71     
72     FixedBitString = 1560,
73     VariableBitString = 1562,
74     
75     Numeric = 1700,
76     RefCursor = 1790,
77     RegProcWithArgs = 2202,
78     RegOperator = 2203,
79     RegOperatorWithArgs = 2204,
80     RegClass = 2205,
81     RegType = 2206,
82     
83     UUID = 2950,
84     TSVector = 3614,
85     GTSVector = 3642,
86     TSQuery = 3615,
87     RegConfig = 3734,
88     RegDictionary = 3769,
89     TXidSnapshot = 2970,
90     
91     Int4Range = 3904,
92     NumRange = 3906,
93     TimeStampRange = 3908,
94     TimeStampWithZoneRange = 3910,
95     DateRange = 3912,
96     Int8Range = 3926,
97     
98     // Arrays
99     BoolArray = 1000,
100     ByteArrayArray = 1001,
101     CharArray = 1002,
102     NameArray = 1003,
103     Int2Array = 1005,
104     Int2VectorArray = 1006,
105     Int4Array = 1007,
106     RegProcArray = 1008,
107     TextArray = 1009,
108     OidArray  = 1028,
109     TidArray = 1010,
110     XidArray = 1011,
111     CidArray = 1012,
112     OidVectorArray = 1013,
113     FixedStringArray = 1014,
114     VariableStringArray = 1015,
115     Int8Array = 1016,
116     PointArray = 1017,
117     LineSegmentArray = 1018,
118     PathArray = 1019,
119     BoxArray = 1020,
120     Float4Array = 1021,
121     Float8Array = 1022,
122     AbsTimeArray = 1023,
123     RelTimeArray = 1024,
124     IntervalArray = 1025,
125     PolygonArray = 1027,
126     AccessControlListArray = 1034,
127     MacAddressArray = 1040,
128     HostAdressArray = 1041,
129     NetworkAdressArray = 651,
130     CStringArray = 1263,
131     TimeStampArray = 1115,
132     DateArray = 1182,
133     TimeArray = 1183,
134     TimeStampWithZoneArray = 1185,
135     TimeIntervalArray = 1187,
136     NumericArray = 1231,
137     TimeWithZoneArray = 1270, 
138     FixedBitStringArray = 1561,
139     VariableBitStringArray = 1563,
140     RefCursorArray = 2201,
141     RegProcWithArgsArray = 2207,
142     RegOperatorArray = 2208,
143     RegOperatorWithArgsArray = 2209,
144     RegClassArray = 2210,
145     RegTypeArray = 2211,
146     UUIDArray = 2951,
147     TSVectorArray = 3643,
148     GTSVectorArray = 3644,
149     TSQueryArray = 3645,
150     RegConfigArray = 3735,
151     RegDictionaryArray = 3770,
152     TXidSnapshotArray = 2949,
153     Int4RangeArray = 3905,
154     NumRangeArray = 3907,
155     TimeStampRangeArray = 3909,
156     TimeStampWithZoneRangeArray = 3911,
157     DateRangeArray = 3913,
158     Int8RangeArray = 3927,
159     
160     // Pseudo types
161     Record = 2249,
162     RecordArray = 2287,
163     CString = 2275,
164     AnyVoid = 2276,
165     AnyArray = 2277,
166     Void = 2278,
167     Trigger = 2279,
168     EventTrigger = 3838,
169     LanguageHandler = 2280,
170     Internal = 2281,
171     Opaque = 2282,
172     AnyElement = 2283,
173     AnyNoArray = 2776,
174     AnyEnum = 3500,
175     FDWHandler = 3115,
176     AnyRange = 3831
177 }