> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-home-button.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> TemplateIgnoreSpaces フォーマットのドキュメント

# TemplateIgnoreSpaces

| 入力 | 出力 | エイリアス |
| -- | -- | ----- |
| ✔  | ✗  |       |

<div id="description">
  ## 説明
</div>

\[`Template`] と似ていますが、入力ストリーム内で区切り文字と値の間にある空白文字をスキップします。
ただし、フォーマット文字列に空白文字が含まれている場合は、それらの文字が入力ストリーム内にも存在している必要があります。
また、空のプレースホルダー (`${}` または `${:None}`) を指定して、1 つの区切り文字を複数のパーツに分割し、その間の空白を無視することもできます。
このようなプレースホルダーは、空白文字をスキップする場合にのみ使用されます。
すべての行でカラムの値の順序が同じであれば、このフォーマットで `JSON` を読み取ることができます。

<Note>
  このフォーマットは入力専用です。
</Note>

<div id="example-usage">
  ## 使用例
</div>

次のリクエストを使用すると、フォーマット [JSON](/ja/reference/formats/JSON/JSON) の出力例からデータを挿入できます。

```sql theme={null}
INSERT INTO table_name 
SETTINGS
    format_template_resultset = '/some/path/resultset.format',
    format_template_row = '/some/path/row.format',
    format_template_rows_between_delimiter = ','
FORMAT TemplateIgnoreSpaces
```

```text title="/some/path/resultset.format" theme={null}
{${}"meta"${}:${:JSON},${}"data"${}:${}[${data}]${},${}"totals"${}:${:JSON},${}"extremes"${}:${:JSON},${}"rows"${}:${:JSON},${}"rows_before_limit_at_least"${}:${:JSON}${}}
```

```text title="/some/path/row.format" theme={null}
{${}"SearchPhrase"${}:${}${phrase:JSON}${},${}"c"${}:${}${cnt:JSON}${}}
```

<div id="format-settings">
  ## フォーマット設定
</div>
