Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/format-sql-code.api.mdx
Claude Code cbcfd9599f docs: cut 6.1.0 versions for docs, admin_docs, developer_docs, components
Snapshots all four versioned Docusaurus sections at v6.1.0. Built on
top of the version-cutting tooling work in chore/docs-cut-6.1.0-versions
so the snapshot benefits from:

- Auto-gen refresh before snapshotting (database pages from engine
  spec metadata, API reference from openapi.json, component pages
  from Storybook stories) — captured at the SHA we cut from rather
  than whatever happened to be on disk.
- Data-import freeze: country list, feature flag table, database
  diagnostics, and component metadata are copied into snapshot-local
  `_versioned_data/` dirs so the historical version doesn't silently
  mutate when the source files change.
- Depth-aware import-path rewriter that handles deeply-nested
  component MDX files referencing `../../../src/` from the snapshot.

Versioning behavior: `lastVersion` stays at `current` for every
section, so the canonical URLs (`/docs/...`, `/admin-docs/...`,
`/developer-docs/...`, `/components/...`) continue to render content
from master. The `current` version is consistently labeled "Next"
with an `unreleased` banner, and `6.1.0` is a historical pin
accessible only via its explicit version segment.

Component playground: previously `disabled: true` in versions-config.json,
now enabled and versioned. The plugin block in docusaurus.config.ts
was already gated only by the `disabled` flag, so no other code
changes were needed to bring it back online.

The frozen `databases.json` in the snapshot is the canonical 80-database
artifact from the latest committed state in master (preserved by the
generator's input-hash cache), not a fallback regenerated from a
local Flask environment.
2026-05-13 17:15:46 -07:00

67 lines
2.9 KiB
Plaintext

---
id: format-sql-code
title: "Format SQL code"
description: "Format SQL code"
sidebar_label: "Format SQL code"
hide_title: true
hide_table_of_contents: true
api: eJzFV21v2zYQ/ivEYUATTImTvQAFi35IgxZtFzRp7WAboiClpYvFhiIVknLiCfrvw5GyrPhlwNIP/WSLOh7vee6546kBi/c1Ov/G5AvgDWRGe9Se/oqqUjITXho9+uaMpjWXFVgK+ldZU6H1Eh095cKLqXB4I/PwiC6zsqKtwGFSIFsaMJlDArpWSkwVAve2xgT8okLgILXHGVpoE0A9kxrJ1w5b563UMzJ194rsNtY9lpUSHm8qYUXptsc1/nzG7mu0C7Y0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HX7g3XbUiKXvThMihFk6MgNTINIY2qpzP6cUI6CGfDuLfQ3SQDdJrT5xuKtRVc81wl5cUZ/WX1EvN0xvB591/CagNS3ZnOEH9cVWofDyXqwRBKNdvPjyLzzpQg3MaVkazU88d9fxx4f/ahSQobLPgi16QrlCkQl6bDjCEiJKSSwKhdIgJQVpXMFTUOUXFrVtrQc529+db1Sb7hiE4jtKVTYHS5I7YNGE8SuagptY86gUoo7TrIMQ6vdbXs9qH/qjpDAtPsULIkQDlY80PeBeAAOkIAJ1MS5ntZiw6/jEBJ9kipo9hvw16un+0OouldCLwYRNk20iH2WSj5CCXcTtNdt2/4LyisNlQ==
sidebar_class_name: "post api-method"
info_path: developer-docs/api/superset
custom_edit_url: null
hide_send_button: true
show_extensions: true
---
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Format SQL code"}
>
</Heading>
<MethodEndpoint
method={"post"}
path={"/api/v1/sqllab/format_sql/"}
context={"endpoint"}
>
</MethodEndpoint>
Format SQL code
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
>
<Translate id="theme.openapi.request.title">Request</Translate>
</Heading>
<ParamsDetails>
</ParamsDetails>
<RequestSchema
{...require("./format-sql-code.RequestSchema.json")}
>
</RequestSchema>
<StatusCodes
{...require("./format-sql-code.StatusCodes.json")}
>
</StatusCodes>