From 5d8f5cc0e6d658ae1f74bdf977988bbe995701bb Mon Sep 17 00:00:00 2001
From: Boris Kolpackov By default, an object pointer can be Customizing a column name for a data member of a simple value
type is straightforward: we simply specify the desired name with
- the The The The The The 10.3.1 id
10.3.2 auto
- 10.3.3 type
- 10.3.4 column
- 10.3.5 transient
+ 10.3.6 null
/not_null
+ 10.3.4 null
/not_null
+ 10.3.5 column
10.3.6 transient
10.3.7 inverse
10.3.8 unordered
@@ -3885,8 +3885,8 @@ class employee
10.3.9 table
NULL
. To
specify that a pointer always points to a valid object we can
- use the not_null
pragma (Section
- 10.3.6, "null
/not_null
") for
+ use the not_null
pragma (Section
+ 10.3.4, "null
/not_null
") for
single object pointers and the value_not_null
pragma
(Section
10.3.13, "value_null
/value_not_null
")
@@ -4972,8 +4972,8 @@ t.commit ();
db column
pragma (Section
- 10.3.4, "column
"). For composite value
+ the db column
pragma (Section
+ 10.3.5, "column
"). For composite value
types things are slightly more complex since they are mapped to
multiple columns. Consider the following example:NULL
semantics can also be specified on the
- per-member basis (Section 10.3.6,
+ per-member basis (Section 10.3.4,
"null
/not_null
"). If both a type and
a member have null
/not_null
specifiers,
then the member specifier takes precedence. If a member specifier
@@ -6445,20 +6445,20 @@ typedef std::map<unsigned short, float> age_weight_map;
-
- column
column name for member
+
+ null
/not_null
member can/cannot be NULL
10.3.4
-
- transient
member is not stored in the database
+
+ column
column name for member
10.3.5
-
@@ -6604,11 +6604,11 @@ class person
};
-
- null
/not_null
member can/cannot be NULL
+
+ transient
member is not stored in the database
10.3.6
null
and not_null
(Section
- 10.3.6, "null
/not_null
") specifiers
+ null
and not_null
(Section
+ 10.3.4, "null
/not_null
") specifiers
can be used to control the NULL semantics of a data member.10.3.4
+ column
10.3.5
column
column
specifier specifies the column name
that should be used to store a data member in a relational database.
@@ -6633,7 +6633,7 @@ class person
name by removing the common data member name decorations, such as leading
and trailing underscores, the m_
prefix, etc.10.3.5
+ transient
10.3.6
transient
transient
specifier instructs the ODB compiler
not to store a data member in the database. For example:
null
/not_null
null
/not_null
The null
and not_null
specifiers specify that
a data member can or cannot be NULL
, respectively.
@@ -6876,7 +6876,7 @@ class person
cannot be NULL
, respectively. The semantics of
value_null
and value_not_null
are similar
to that of the null
and not_null
specifiers
- (Section 10.3.6, "null
/not_null
").
+ (Section 10.3.4, "null
/not_null
").
For example:
@@ -6909,7 +6909,7 @@ class account container's table for a data member. The semantics ofid_column
are similar to that of thecolumn
specifier - (Section 10.3.4, "column
"). + (Section 10.3.5, "column
"). For example:@@ -6933,7 +6933,7 @@ class person ordered container's table for a data member. The semantics ofindex_column
are similar to that of thecolumn
specifier - (Section 10.3.4, "column
"). + (Section 10.3.5, "column
"). For example:@@ -6957,7 +6957,7 @@ class person container's table for a data member. The semantics ofkey_column
are similar to that of thecolumn
specifier - (Section 10.3.4, "column
"). + (Section 10.3.5, "column
"). For example:@@ -6981,7 +6981,7 @@ class person container's table for a data member. The semantics ofvalue_column
are similar to that of thecolumn
specifier - (Section 10.3.4, "column
"). + (Section 10.3.5, "column
"). For example:-- cgit v1.1