{
  "$schema": "/products/haybarn/functions/api/v1/function.schema.json",
  "schemaVersion": 1,
  "name": "truncate_duckdb_logs",
  "schema": "main",
  "slug": "truncate_duckdb_logs",
  "description": null,
  "category": "numeric",
  "kinds": [
    "table"
  ],
  "aliasOf": [],
  "snapshot": {
    "schemaVersion": 1,
    "id": "haybarn-1.5.5-rc3",
    "engine": "haybarn",
    "label": "Haybarn WASM 1.5.5-rc3",
    "engineVersion": "v1.5.6-dev149",
    "sourceId": "105edd31b5",
    "source": "https://www.npmjs.com/package/@haybarn/haybarn-wasm/v/1.5.5-rc3",
    "binarySha256": "426638bc374fcc542fea93b251f885bfb7d221c68fcc0a5a81cc565d7e6ca180",
    "capturedAt": "2026-09-06T00:23:30.515Z",
    "requestedExtensions": [
      "core_functions",
      "icu",
      "json",
      "parquet"
    ],
    "loadedExtensions": [
      {
        "extension_name": "core_functions",
        "extension_version": "105edd31b5",
        "installed_from": ""
      },
      {
        "extension_name": "icu",
        "extension_version": "v1.5.5",
        "installed_from": ""
      },
      {
        "extension_name": "json",
        "extension_version": "v1.5.5",
        "installed_from": ""
      },
      {
        "extension_name": "parquet",
        "extension_version": "v1.5.5",
        "installed_from": ""
      }
    ],
    "scope": "Built-in functions in the main schema captured from the published Haybarn WASM package, with core_functions, ICU, JSON and Parquet loaded.",
    "runtime": {
      "engine": "haybarn-wasm",
      "packageVersion": "1.5.5-rc3",
      "bundle": "eh"
    }
  },
  "links": {
    "html": "/products/haybarn/functions/releases/haybarn-1.5.5-rc3/truncate_duckdb_logs/",
    "markdown": "/products/haybarn/functions/releases/haybarn-1.5.5-rc3/truncate_duckdb_logs/index.md",
    "json": "/products/haybarn/functions/api/v1/haybarn-1.5.5-rc3/functions/truncate_duckdb_logs.json"
  },
  "interpretation": [
    "Choose a snapshot matching the target engine and build. The default is captured from the published Haybarn WASM package used by the browser playground. Historical native snapshots are also available.",
    "Availability is an observation in the recorded build and extension profile, not a guarantee of support in every installation or in WASM.",
    "Types and descriptions are declarations from duckdb_functions(). Binding can specialize result types. Null means not supplied by the catalog; do not invent defaults, optionality, argument mode, or table output columns.",
    "Raw parameter arrays preserve catalog order for scalar/aggregate/macro functions. Raw table arguments are alphabetical. Use callingConvention for engine-confirmed positional order and named arguments; null modes are unrecorded. Named does not mean optional. Macro defaults and special named variadic behavior are not supplied by duckdb_functions().",
    "Catalog examples are source material and may require data or extensions. runnableExamples contains separately verified SQL for the pinned WASM package; sample-data adaptations and guide examples are labeled separately.",
    "Guide annotations and recipes are separate editorial content. The browser runner always uses Haybarn WASM 1.5.5-rc3, independently of the documentation snapshot.",
    "All URLs beginning with / are relative to the origin hosting this document. Exports require no JavaScript, cookies, API key, or browser engine."
  ],
  "overloads": [
    {
      "id": "overload-b63d939934f16917",
      "url": "/products/haybarn/functions/releases/haybarn-1.5.5-rc3/truncate_duckdb_logs/#overload-b63d939934f16917",
      "signature": "truncate_duckdb_logs() → TABLE",
      "parameterOrder": "alphabetical-not-call-order",
      "callingConvention": {
        "source": "engine-binder",
        "parameters": [],
        "positional": [],
        "named": [],
        "variadic": null,
        "evidence": {
          "query": "EXPLAIN SELECT * FROM \"truncate_duckdb_logs\"(__guide_invalid_named_parameter__ := NULL);",
          "diagnostic": "Binder Error: Invalid named parameter \"__guide_invalid_named_parameter__\" for function truncate_duckdb_logs\nFunction does not accept any named parameters.\n\nLINE 1: EXPLAIN SELECT * FROM \"truncate_duckdb_logs\"(__guide_invalid_named_parameter__...\n                              ^"
        }
      },
      "syntax": {
        "kind": "function",
        "operator": null
      },
      "catalog": {
        "schema_name": "main",
        "function_name": "truncate_duckdb_logs",
        "function_type": "table",
        "description": null,
        "comment": null,
        "return_type": null,
        "parameters": [],
        "parameter_types": [],
        "varargs": null,
        "macro_definition": null,
        "has_side_effects": null,
        "internal": true,
        "examples": [],
        "stability": null,
        "categories": [],
        "alias_of": null
      }
    }
  ],
  "editorial": {
    "argumentNotes": [],
    "recipes": []
  },
  "examples": [],
  "translations": [],
  "runnableExamples": [],
  "additionalDocumentation": [
    {
      "title": "Numeric Functions",
      "url": "https://duckdb.org/docs/current/sql/functions/numeric"
    }
  ],
  "availability": [
    {
      "snapshot": "haybarn-1.5.5-rc3",
      "observed": true,
      "overloadCount": 1,
      "matchingOverloadIds": [
        "overload-b63d939934f16917"
      ],
      "json": "/products/haybarn/functions/api/v1/haybarn-1.5.5-rc3/functions/truncate_duckdb_logs.json"
    },
    {
      "snapshot": "duckdb-1.5.5",
      "observed": true,
      "overloadCount": 1,
      "matchingOverloadIds": [
        "overload-b63d939934f16917"
      ],
      "json": "/products/haybarn/functions/api/v1/duckdb-1.5.5/functions/truncate_duckdb_logs.json"
    },
    {
      "snapshot": "duckdb-1.4.4",
      "observed": true,
      "overloadCount": 1,
      "matchingOverloadIds": [
        "overload-b63d939934f16917"
      ],
      "json": "/products/haybarn/functions/api/v1/duckdb-1.4.4/functions/truncate_duckdb_logs.json"
    },
    {
      "snapshot": "duckdb-1.3.2",
      "observed": true,
      "overloadCount": 1,
      "matchingOverloadIds": [],
      "json": "/products/haybarn/functions/api/v1/duckdb-1.3.2/functions/truncate_duckdb_logs.json"
    }
  ]
}
