{"version":3,"file":"column-types.mjs","names":[],"sources":["../../../../3-extensions/postgis/dist/column-types.mjs"],"sourcesContent":["import { t as POSTGIS_GEOMETRY_CODEC_ID } from \"./constants-CWW72xGt.mjs\";\nimport { t as postgisError } from \"./errors-Bg6kDFR-.mjs\";\n//#region src/exports/column-types.ts\nconst geometryColumn = {\n\tcodecId: POSTGIS_GEOMETRY_CODEC_ID,\n\tnativeType: \"geometry\"\n};\n/**\n* Build an SRID-constrained geometry column descriptor.\n*\n* @example\n*   .column('location', { type: geometry({ srid: 4326 }), nullable: false })\n*   // Produces: nativeType: 'geometry', typeParams: { srid: 4326 }\n*\n* @throws If `srid` is not a non-negative integer\n* (structured `CONTRACT.ARGUMENT_INVALID`).\n*/\nfunction geometry(options) {\n\tconst { srid } = options;\n\tif (!Number.isInteger(srid) || srid < 0) throw postgisError(\"CONTRACT.ARGUMENT_INVALID\", `postgis: srid must be a non-negative integer, got ${srid}`, { meta: {\n\t\thelperPath: \"geometry\",\n\t\texpected: \"non-negative integer\",\n\t\treceived: srid\n\t} });\n\treturn {\n\t\tcodecId: POSTGIS_GEOMETRY_CODEC_ID,\n\t\tnativeType: \"geometry\",\n\t\ttypeParams: { srid }\n\t};\n}\n//#endregion\nexport { geometry, geometryColumn };\n\n//# sourceMappingURL=column-types.mjs.map"],"mappings":";;;AAGA,MAAM,iBAAiB;CACtB,SAAS;CACT,YAAY;AACb;;;;;;;;;;;AAWA,SAAS,SAAS,SAAS;CAC1B,MAAM,EAAE,SAAS;CACjB,IAAI,CAAC,OAAO,UAAU,IAAI,KAAK,OAAO,GAAG,MAAM,aAAa,6BAA6B,qDAAqD,QAAQ,EAAE,MAAM;EAC7J,YAAY;EACZ,UAAU;EACV,UAAU;CACX,EAAE,CAAC;CACH,OAAO;EACN,SAAS;EACT,YAAY;EACZ,YAAY,EAAE,KAAK;CACpB;AACD"}