consts.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package clickhouse
  15. const (
  16. // TAG_PARTITION defines expression of PARTITION BY
  17. TAG_PARTITION = "clickhouse_partition_by"
  18. // TAG_ORDER defines fields of ORDER BY
  19. TAG_ORDER = "clickhouse_order_by"
  20. // TAG_TTL defines table TTL
  21. TAG_TTL = "clickhouse_ttl"
  22. EXTRA_OPTION_ENGINE_KEY = "clickhouse_engine"
  23. EXTRA_OPTION_ENGINE_VALUE_MERGETRUE = "MergeTree"
  24. EXTRA_OPTION_ENGINE_VALUE_MYSQL = "MySQL"
  25. // 'host:port', 'database', 'table', 'user', 'password'
  26. EXTRA_OPTION_CLICKHOUSE_MYSQL_HOSTPORT_KEY = "clickhouse_mysql_hostport"
  27. EXTRA_OPTION_CLICKHOUSE_MYSQL_DATABASE_KEY = "clickhouse_mysql_database"
  28. EXTRA_OPTION_CLICKHOUSE_MYSQL_TABLE_KEY = "clickhouse_mysql_table"
  29. EXTRA_OPTION_CLICKHOUSE_MYSQL_USERNAME_KEY = "clickhouse_mysql_username"
  30. EXTRA_OPTION_CLICKHOUSE_MYSQL_PASSWORD_KEY = "clickhouse_mysql_password"
  31. )