github.com/matrixorigin/matrixone@v1.2.0/pkg/frontend/collation.go (about) 1 // Copyright 2021 Matrix Origin 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 15 package frontend 16 17 type Collation struct { 18 collationName string 19 charset string 20 id int64 21 isDefault string 22 isCompiled string 23 sortLen int32 24 padAttribute string 25 } 26 27 var Collations []*Collation = []*Collation{ 28 {"utf8_general_ci", "utf8", 33, "", "Yes", 1, "PAD SPACE"}, 29 {"binary", "binary", 63, "YES", "Yes", 1, "NO PAD"}, 30 {"utf8_unicode_ci", "utf8", 192, "", "Yes", 1, "PAD SPACE"}, 31 {"utf8_bin", "utf8", 83, "YES", "Yes", 1, "NO PAD"}, 32 {"utf8mb4_general_ci", "utf8mb4", 45, "", "Yes", 1, "PAD SPACE"}, 33 {"utf8mb4_unicode_ci", "utf8mb4", 224, "", "Yes", 1, "PAD SPACE"}, 34 {"utf8mb4_bin", "utf8mb4", 46, "YES", "Yes", 1, "NO PAD"}, 35 {"utf8mb4_0900_bin", "utf8mb4", 309, "", "Yes", 1, "NO PAD"}, 36 {"utf8mb4_0900_ai_ci", "utf8mb4", 255, "", "Yes", 0, "NO PAD"}, 37 {"utf8mb4_de_pb_0900_ai_ci", "utf8mb4", 256, "", "Yes", 0, "NO PAD"}, 38 {"utf8mb4_is_0900_ai_ci", "utf8mb4", 257, "", "Yes", 0, "NO PAD"}, 39 {"utf8mb4_lv_0900_ai_ci", "utf8mb4", 258, "", "Yes", 0, "NO PAD"}, 40 }