{"version":3,"file":"runtime.mjs","names":[],"sources":["../src/exports/runtime.ts"],"sourcesContent":["import type { SqlRuntimeExtensionDescriptor } from '@prisma-next/sql-runtime';\nimport { postgisPackMeta, postgisQueryOperations } from '../core/descriptor-meta';\nimport { postgisCodecRegistry } from '../core/registry';\n\nconst postgisRuntimeDescriptor: SqlRuntimeExtensionDescriptor<'postgres'> = {\n  kind: 'extension' as const,\n  id: postgisPackMeta.id,\n  version: postgisPackMeta.version,\n  familyId: 'sql' as const,\n  targetId: 'postgres' as const,\n  // Expose the unified descriptor list so `extractCodecLookup` reads\n  // `targetTypes` / `meta` / `renderOutputType` directly off the\n  // descriptors and materialises the representative `Codec` for the\n  // SQL renderer's cast-policy lookup. Without it, the Postgres\n  // adapter's runtime codec lookup would miss `pg/geometry@1` and\n  // `$N::geometry` casts would disappear once the renderer switches\n  // to lookup-driven cast policy.\n  types: {\n    codecTypes: {\n      codecDescriptors: Array.from(postgisCodecRegistry.values()),\n    },\n  },\n  codecs: () => Array.from(postgisCodecRegistry.values()),\n  queryOperations: () => postgisQueryOperations(),\n  create() {\n    return {\n      familyId: 'sql' as const,\n      targetId: 'postgres' as const,\n    };\n  },\n};\n\nexport { postgisCodecRegistry };\nexport default postgisRuntimeDescriptor;\n"],"mappings":";;AAIA,MAAM,2BAAsE;CAC1E,MAAM;CACN,IAAI,gBAAgB;CACpB,SAAS,gBAAgB;CACzB,UAAU;CACV,UAAU;CAQV,OAAO,EACL,YAAY,EACV,kBAAkB,MAAM,KAAK,qBAAqB,OAAO,CAAC,EAC5D,EACF;CACA,cAAc,MAAM,KAAK,qBAAqB,OAAO,CAAC;CACtD,uBAAuB,uBAAuB;CAC9C,SAAS;EACP,OAAO;GACL,UAAU;GACV,UAAU;EACZ;CACF;AACF"}