deno.land / x / pg_mem@2.8.1 / schema / consts.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export const SCHEMA_NAMESPACE = 11;export const MAIN_NAMESPACE = 2200;
type OidType = 'table' | 'index';export function makeOid(type: OidType, id: string) { return `oid:${type}:${id}`;}
export function parseOid(oid: string): { type: OidType; id: string } { const [_, type, id] = /^oid:([^:]+):([^:]+)$/.exec(oid) ?? []; return { type: type as OidType, id }}
pg_mem

Version Info

Tagged at
4 months ago