You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I set the allow_experimental_object_type value before creating a table in Clickhouse DB using go-gorm library?
The document you expected this should be explained
I need to have a field of type Json in the Golang structure. According to this document https://clickhouse.com/docs/en/integrations/data-formats/json, I need to set the allow_experimental_object_type value to 1 before creating a table, but I couldn't find a way to set it using the go-gorm library.
Expected answer
I need a code snippet or a small workaround to set allow_experimental_object_type to 1 using go-gorm library, so I can automatically migrate the Golang struct to the Clickhouse table with the JSON field.
The text was updated successfully, but these errors were encountered:
samanshahroudi
changed the title
setting allow_experimental_object_type
setting allow_experimental_object_type to migrate JSON type fields to Clickhouse DB
Apr 21, 2024
Your Question
How can I set the
allow_experimental_object_type
value before creating a table in Clickhouse DB using go-gorm library?The document you expected this should be explained
I need to have a field of type Json in the Golang structure. According to this document https://clickhouse.com/docs/en/integrations/data-formats/json, I need to set the
allow_experimental_object_type
value to 1 before creating a table, but I couldn't find a way to set it using the go-gorm library.Expected answer
I need a code snippet or a small workaround to set
allow_experimental_object_type
to 1 using go-gorm library, so I can automatically migrate the Golang struct to the Clickhouse table with the JSON field.The text was updated successfully, but these errors were encountered: