diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-05-17 14:51:38 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-05-17 15:02:02 +0200 |
commit | 2162b1fa3fc74baef93ef1ddbb6ba7d9d40ab511 (patch) | |
tree | ecbc507b9921a54b0d33d96e78968140850b9b5c | |
parent | 10a83d0453f65c41c3915c906f2d6cf9d6ff349e (diff) |
Add oid enum generated from postgres-8.4.8/src/include/catalog/pg_type.h
-rw-r--r-- | odb/pgsql/pgsql-oid.hxx | 230 |
1 files changed, 230 insertions, 0 deletions
diff --git a/odb/pgsql/pgsql-oid.hxx b/odb/pgsql/pgsql-oid.hxx new file mode 100644 index 0000000..c74d978 --- /dev/null +++ b/odb/pgsql/pgsql-oid.hxx @@ -0,0 +1,230 @@ +// file : odb/pgsql/pgsql-oid.hxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +// OIDs extracted from PostgreSQL 8.4.8 source, file: +// src/include/catalog/pg_type.h +// + +#ifndef ODB_PGSQL_PGSQL_OID_HXX +#define ODB_PGSQL_PGSQL_OID_HXX + +#include <odb/pre.hxx> + +#include <odb/pgsql/version.hxx> + +namespace odb +{ + namespace pgsql + { + enum oid + { + // OIDS 1 - 99 + // + bool_oid = 16, + bytea_oid = 17, + char_oid = 18, + name_oid = 19, + int8_oid = 20, + int2_oid = 21, + int2vector_oid = 22, + int4_oid = 23, + regproc_oid = 24, + text_oid = 25, + oid_oid = 26, + tid_oid = 27, + xid_oid = 28, + cid_oid = 29, + oidvector_oid = 30, + + // hand-built rowtype entries for bootstrapped catalogs: + // + pg_type_oid = 71, + pg_attribute_oid = 75, + pg_proc_oid = 81, + pg_class_oid = 83, + + // OIDS 100 - 199 + // + xml_oid = 142, + _xml_oid = 143, + + // OIDS 200 - 299 + // + smgr_oid = 210, + + // OIDS 300 - 399 + // + + // OIDS 400 - 499 + // + + // OIDS 500 - 599 + // + + // OIDS 600 - 699 + // + point_oid = 600, + lseg_oid = 601, + path_oid = 602, + box_oid = 603, + polygon_oid = 604, + line_oid = 628, + _line_oid = 629, + + // OIDS 700 - 799 + // + float4_oid = 700, + float8_oid = 701, + abstime_oid = 702, + reltime_oid = 703, + tinterval_oid = 704, + unknown_oid = 705, + circle_oid = 718, + _circle_oid = 719, + money_oid = 790, + _money_oid = 791, + + // OIDS 800 - 899 + // + macaddr_oid = 829, + inet_oid = 869, + cidr_oid = 650, + + // OIDS 900 - 999 + // + + // OIDS 1000 - 1099 + // + _bool_oid = 1000, + _bytea_oid = 1001, + _char_oid = 1002, + _name_oid = 1003, + _int2_oid = 1005, + _int2vector_oid = 1006, + _int4_oid = 1007, + int4array_oid = 1007, + _regproc_oid = 1008, + _text_oid = 1009, + textarray_oid = 1009, + _oid_oid = 1028, + _tid_oid = 1010, + _xid_oid = 1011, + _cid_oid = 1012, + _oidvector_oid = 1013, + _bpchar_oid = 1014, + _varchar_oid = 1015, + _int8_oid = 1016, + _point_oid = 1017, + _lseg_oid = 1018, + _path_oid = 1019, + _box_oid = 1020, + _float4_oid = 1021, + float4array_oid = 1021, + _float8_oid = 1022, + _abstime_oid = 1023, + _reltime_oid = 1024, + _tinterval_oid = 1025, + _polygon_oid = 1027, + aclitem_oid = 1033, + _aclitem_oid = 1034, + _macaddr_oid = 1040, + _inet_oid = 1041, + _cidr_oid = 651, + _cstring_oid = 1263, + cstringarray_oid = 1263, + bpchar_oid = 1042, + varchar_oid = 1043, + date_oid = 1082, + time_oid = 1083, + + // OIDS 1100 - 1199 + // + timestamp_oid = 1114, + _timestamp_oid = 1115, + _date_oid = 1182, + _time_oid = 1183, + timestamptz_oid = 1184, + _timestamptz_oid = 1185, + interval_oid = 1186, + _interval_oid = 1187, + + // OIDS 1200 - 1299 + // + _numeric_oid = 1231, + timetz_oid = 1266, + _timetz_oid = 1270, + + // OIDS 1500 - 1599 + // + bit_oid = 1560, + _bit_oid = 1561, + varbit_oid = 1562, + _varbit_oid = 1563, + + // OIDS 1600 - 1699 + // + + // OIDS 1700 - 1799 + // + numeric_oid = 1700, + refcursor_oid = 1790, + + // OIDS 2200 - 2299 + // + _refcursor_oid = 2201, + regprocedure_oid = 2202, + regoper_oid = 2203, + regoperator_oid = 2204, + regclass_oid = 2205, + regtype_oid = 2206, + _regprocedure_oid = 2207, + _regoper_oid = 2208, + _regoperator_oid = 2209, + _regclass_oid = 2210, + _regtype_oid = 2211, + + // uuid + // + uuid_oid = 2950, + _uuid_oid = 2951, + + + // text search + // + tsvector_oid = 3614, + gtsvector_oid = 3642, + tsquery_oid = 3615, + regconfig_oid = 3734, + regdictionary_oid = 3769, + _tsvector_oid = 3643, + _gtsvector_oid = 3644, + _tsquery_oid = 3645, + _regconfig_oid = 3735, + _regdictionary_oid = 3770, + txid_snapshot_oid = 2970, + _txid_snapshot_oid = 2949, + + // pseudo-types + // + record_oid = 2249, + _record_oid = 2287, + cstring_oid = 2275, + any_oid = 2276, + anyarray_oid = 2277, + void_oid = 2278, + trigger_oid = 2279, + language_handler_oid = 2280, + internal_oid = 2281, + opaque_oid = 2282, + anyelement_oid = 2283, + anynonarray_oid = 2776, + anyenum_oid = 3500 + }; + } +} + +#include <odb/post.hxx> + +#endif // ODB_PGSQL_PGSQL_OID_HXX |