apla / node-clickhouse

Yandex ClickHouse driver for nodejs
MIT License
216 stars 50 forks source link

Define Enum type with xml config #20

Closed ks-s-a closed 4 years ago

ks-s-a commented 5 years ago

Hello!

I would like to define Enum8 as an attribute type. I'v tried with this markup:

<attribute>
  <name>any_name</name>
  <type>Enum8('first'=1,'second'=2)</type>
  <null_value/>
</attribute>

but got an error:

Error: Unknown type Enum8('first'=1,'second'=2)

How could I define Enum type with xml config? I'v not found the appropriate docs.

Thanks!

nezed commented 5 years ago

Hi!

Please provide more info about your case and functionality. I'm not familiar with this kind of xml configuration, probably you are talking about Dictionaries configuration.

Please pay attention! This is the driver repository, and this driver doesn't handles any chickhouse-server configurations. If its a feature request to the DBMS - you can ask about it directly in issues of https://github.com/yandex/ClickHouse/