Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/postgres/query/oid.ts

PostgreSQL driver for Deno
Extremely Popular
Latest
File
/** A Postgres Object identifiers (OIDs) type name. */export type OidType = keyof typeof Oid;/** A Postgres Object identifiers (OIDs) numeric value. */export type OidValue = (typeof Oid)[OidType];
/** * A map of OidType to OidValue. */export const Oid = { bool: 16, bytea: 17, char: 18, name: 19, int8: 20, int2: 21, _int2vector_0: 22, int4: 23, regproc: 24, text: 25, oid: 26, tid: 27, xid: 28, _cid_0: 29, _oidvector_0: 30, _pg_ddl_command: 32, _pg_type: 71, _pg_attribute: 75, _pg_proc: 81, _pg_class: 83, json: 114, _xml_0: 142, _xml_1: 143, _pg_node_tree: 194, json_array: 199, _smgr: 210, _index_am_handler: 325, point: 600, lseg: 601, path: 602, box: 603, polygon: 604, line: 628, line_array: 629, cidr: 650, cidr_array: 651, float4: 700, float8: 701, _abstime_0: 702, _reltime_0: 703, _tinterval_0: 704, _unknown: 705, circle: 718, circle_array: 719, _money_0: 790, _money_1: 791, macaddr: 829, inet: 869, bool_array: 1000, byte_array: 1001, char_array: 1002, name_array: 1003, int2_array: 1005, _int2vector_1: 1006, int4_array: 1007, regproc_array: 1008, text_array: 1009, tid_array: 1010, xid_array: 1011, _cid_1: 1012, _oidvector_1: 1013, bpchar_array: 1014, varchar_array: 1015, int8_array: 1016, point_array: 1017, lseg_array: 1018, path_array: 1019, box_array: 1020, float4_array: 1021, float8_array: 1022, _abstime_1: 1023, _reltime_1: 1024, _tinterval_1: 1025, polygon_array: 1027, oid_array: 1028, _aclitem_0: 1033, _aclitem_1: 1034, macaddr_array: 1040, inet_array: 1041, bpchar: 1042, varchar: 1043, date: 1082, time: 1083, timestamp: 1114, timestamp_array: 1115, date_array: 1182, time_array: 1183, timestamptz: 1184, timestamptz_array: 1185, _interval_0: 1186, _interval_1: 1187, numeric_array: 1231, _pg_database: 1248, _cstring_0: 1263, timetz: 1266, timetz_array: 1270, _bit_0: 1560, _bit_1: 1561, _varbit_0: 1562, _varbit_1: 1563, numeric: 1700, _refcursor_0: 1790, _refcursor_1: 2201, regprocedure: 2202, regoper: 2203, regoperator: 2204, regclass: 2205, regtype: 2206, regprocedure_array: 2207, regoper_array: 2208, regoperator_array: 2209, regclass_array: 2210, regtype_array: 2211, _record_0: 2249, _cstring_1: 2275, _any: 2276, _anyarray: 2277, void: 2278, _trigger: 2279, _language_handler: 2280, _internal: 2281, _opaque: 2282, _anyelement: 2283, _record_1: 2287, _anynonarray: 2776, _pg_authid: 2842, _pg_auth_members: 2843, _txid_snapshot_0: 2949, uuid: 2950, uuid_array: 2951, _txid_snapshot_1: 2970, _fdw_handler: 3115, _pg_lsn_0: 3220, _pg_lsn_1: 3221, _tsm_handler: 3310, _anyenum: 3500, _tsvector_0: 3614, _tsquery_0: 3615, _gtsvector_0: 3642, _tsvector_1: 3643, _gtsvector_1: 3644, _tsquery_1: 3645, regconfig: 3734, regconfig_array: 3735, regdictionary: 3769, regdictionary_array: 3770, jsonb: 3802, jsonb_array: 3807, _anyrange: 3831, _event_trigger: 3838, _int4range_0: 3904, _int4range_1: 3905, _numrange_0: 3906, _numrange_1: 3907, _tsrange_0: 3908, _tsrange_1: 3909, _tstzrange_0: 3910, _tstzrange_1: 3911, _daterange_0: 3912, _daterange_1: 3913, _int8range_0: 3926, _int8range_1: 3927, _pg_shseclabel: 4066, regnamespace: 4089, regnamespace_array: 4090, regrole: 4096, regrole_array: 4097,} as const;
/** * A map of OidValue to OidType. Used to decode values and avoid search iteration. */export const OidTypes: { [key in OidValue]: OidType;} = { 16: "bool", 17: "bytea", 18: "char", 19: "name", 20: "int8", 21: "int2", 22: "_int2vector_0", 23: "int4", 24: "regproc", 25: "text", 26: "oid", 27: "tid", 28: "xid", 29: "_cid_0", 30: "_oidvector_0", 32: "_pg_ddl_command", 71: "_pg_type", 75: "_pg_attribute", 81: "_pg_proc", 83: "_pg_class", 114: "json", 142: "_xml_0", 143: "_xml_1", 194: "_pg_node_tree", 199: "json_array", 210: "_smgr", 325: "_index_am_handler", 600: "point", 601: "lseg", 602: "path", 603: "box", 604: "polygon", 628: "line", 629: "line_array", 650: "cidr", 651: "cidr_array", 700: "float4", 701: "float8", 702: "_abstime_0", 703: "_reltime_0", 704: "_tinterval_0", 705: "_unknown", 718: "circle", 719: "circle_array", 790: "_money_0", 791: "_money_1", 829: "macaddr", 869: "inet", 1000: "bool_array", 1001: "byte_array", 1002: "char_array", 1003: "name_array", 1005: "int2_array", 1006: "_int2vector_1", 1007: "int4_array", 1008: "regproc_array", 1009: "text_array", 1010: "tid_array", 1011: "xid_array", 1012: "_cid_1", 1013: "_oidvector_1", 1014: "bpchar_array", 1015: "varchar_array", 1016: "int8_array", 1017: "point_array", 1018: "lseg_array", 1019: "path_array", 1020: "box_array", 1021: "float4_array", 1022: "float8_array", 1023: "_abstime_1", 1024: "_reltime_1", 1025: "_tinterval_1", 1027: "polygon_array", 1028: "oid_array", 1033: "_aclitem_0", 1034: "_aclitem_1", 1040: "macaddr_array", 1041: "inet_array", 1042: "bpchar", 1043: "varchar", 1082: "date", 1083: "time", 1114: "timestamp", 1115: "timestamp_array", 1182: "date_array", 1183: "time_array", 1184: "timestamptz", 1185: "timestamptz_array", 1186: "_interval_0", 1187: "_interval_1", 1231: "numeric_array", 1248: "_pg_database", 1263: "_cstring_0", 1266: "timetz", 1270: "timetz_array", 1560: "_bit_0", 1561: "_bit_1", 1562: "_varbit_0", 1563: "_varbit_1", 1700: "numeric", 1790: "_refcursor_0", 2201: "_refcursor_1", 2202: "regprocedure", 2203: "regoper", 2204: "regoperator", 2205: "regclass", 2206: "regtype", 2207: "regprocedure_array", 2208: "regoper_array", 2209: "regoperator_array", 2210: "regclass_array", 2211: "regtype_array", 2249: "_record_0", 2275: "_cstring_1", 2276: "_any", 2277: "_anyarray", 2278: "void", 2279: "_trigger", 2280: "_language_handler", 2281: "_internal", 2282: "_opaque", 2283: "_anyelement", 2287: "_record_1", 2776: "_anynonarray", 2842: "_pg_authid", 2843: "_pg_auth_members", 2949: "_txid_snapshot_0", 2950: "uuid", 2951: "uuid_array", 2970: "_txid_snapshot_1", 3115: "_fdw_handler", 3220: "_pg_lsn_0", 3221: "_pg_lsn_1", 3310: "_tsm_handler", 3500: "_anyenum", 3614: "_tsvector_0", 3615: "_tsquery_0", 3642: "_gtsvector_0", 3643: "_tsvector_1", 3644: "_gtsvector_1", 3645: "_tsquery_1", 3734: "regconfig", 3735: "regconfig_array", 3769: "regdictionary", 3770: "regdictionary_array", 3802: "jsonb", 3807: "jsonb_array", 3831: "_anyrange", 3838: "_event_trigger", 3904: "_int4range_0", 3905: "_int4range_1", 3906: "_numrange_0", 3907: "_numrange_1", 3908: "_tsrange_0", 3909: "_tsrange_1", 3910: "_tstzrange_0", 3911: "_tstzrange_1", 3912: "_daterange_0", 3913: "_daterange_1", 3926: "_int8range_0", 3927: "_int8range_1", 4066: "_pg_shseclabel", 4089: "regnamespace", 4090: "regnamespace_array", 4096: "regrole", 4097: "regrole_array",} as const;