1 /*************************************************************************
3 * Copyright 2016 Realm Inc.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 **************************************************************************/
19 #ifndef REALM_COLUMN_TYPE_HPP
20 #define REALM_COLUMN_TYPE_HPP
25 // Note: Enumeration value assignments must be kept in sync with
26 // <realm/data_type.hpp>.
32 col_type_StringEnum = 3, // double refs
36 col_type_OldDateTime = 7,
37 col_type_Timestamp = 8,
40 col_type_Reserved4 = 11, // Decimal
42 col_type_LinkList = 13,
43 col_type_BackLink = 14
47 // Column attributes can be combined using bitwise or.
52 /// Specifies that this column forms a unique constraint. It requires
53 /// `col_attr_Indexed`.
56 /// Reserved for future use.
57 col_attr_Reserved = 4,
59 /// Specifies that the links of this column are strong, not weak. Applies
60 /// only to link columns (`type_Link` and `type_LinkList`).
61 col_attr_StrongLinks = 8,
63 /// Specifies that elements in the column can be null.
64 col_attr_Nullable = 16
70 #endif // REALM_COLUMN_TYPE_HPP