Skip to content
HALOWERK

Data Conversion and Public Data

pg cast explicit bridge

SQL cast planning identifies intermediate types with two registered conversion steps between the supplied types. Use it when an agent needs an explicit catalog conversion fact.

POST https://daten.halowerk.com/v1/pg-cast-explicit-bridge

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
source_typestringYes
target_typestringYes
snapshotSee schemaNo
Show full input schema
{
  "type": "object",
  "properties": {
    "source_type": {
      "type": "string",
      "minLength": 1,
      "maxLength": 150
    },
    "target_type": {
      "type": "string",
      "minLength": 1,
      "maxLength": 150
    },
    "snapshot": {
      "enum": [
        "pg-17.7"
      ]
    }
  },
  "required": [
    "source_type",
    "target_type"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "source_type": "int4",
  "target_type": "int8",
  "snapshot": "pg-17.7"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "intermediate": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "total": {
          "type": "integer"
        }
      },
      "required": [
        "intermediate",
        "total"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’