> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# format_capn_* format settings

> ClickHouse format settings in the format_capn_* generated group.

These settings are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/FormatFactorySettings.h).

## format\_capn\_proto\_enum\_comparising\_mode

Type

CapnProtoEnumComparingMode

Default

by\_values

How to map ClickHouse Enum and CapnProto Enum

## format\_capn\_proto\_max\_message\_size

Type

UInt64

Default

1073741824

Maximum size of a single CapnProto message in bytes. This protects against malformed or corrupted data causing excessive memory allocation. Default is 1 GiB.

## format\_capn\_proto\_use\_autogenerated\_schema

Type

Bool

Default

1

Use autogenerated CapnProto schema when format\_schema is not set
