Skip to main content
Module

x/pg_mem/schema/consts.ts

An in memory postgres DB instance for your unit tests
Go to Latest
File
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 }}