From aa060c73be6177ef8720e75fef15d3ca72e3d042 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov
PART I OBJECT-RELATIONAL MAPPING | +|||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Introduction
PrefaceAs more critical aspects of our lives become dependant on software @@ -552,9 +566,22 @@ for consistency. + + + + + PART I + OBJECT-RELATIONAL MAPPING+ +Part I describes the essential database concepts, APIs, and tools that + together comprise the object-relational mapping for C++ as implemented + by ODB. + + +1 IntroductionODB is an object-relational mapping (ORM) system for C++. It provides @@ -759,6 +786,7 @@ for consistency. + 2 Hello World ExampleIn this chapter we will show how to create a simple C++
@@ -1158,7 +1186,7 @@ main (int argc, char* argv[])
database name, etc., from the command line. In your own applications
you may prefer to use other Next, we create three 3 Working with Persistent ObjectsThe previous chapters gave us a high-level overview of ODB and
@@ -1920,7 +1949,7 @@ auto_ptr<odb::database> db (
as well as the next chapter which is dedicated to the topic of
querying the database for persistent objects. For details on the
system-specific Before we can persist our objects, the corresponding database schema has to be created in the database. The schema contains table definitions and @@ -2756,8 +2785,8 @@ namespace odb The The 4 Querying the DatabaseIf we don't know the identifiers of the objects that we are looking @@ -3317,6 +3347,7 @@ namespace odb + 5 ContainersThe ODB runtime library provides built-in persistence support for @@ -3659,6 +3690,7 @@ private: + 6 RelationshipsRelationships between persistent objects are expressed with pointers or @@ -4655,6 +4687,7 @@ t.commit (); + 7 Composite Value TypesA composite value type is a 8 SessionA session is an application's unit of work that may encompass several @@ -5165,6 +5199,7 @@ t.commit (); + 5 ODB Pragma LanguageAs we have already seen in previous chapters, ODB uses a pragma-based
@@ -5535,7 +5570,7 @@ private:
types, such as In the above example we changed the mapping for the 10 Database Systems++ PART II + DATABASE SYSTEMS-This chapter covers topics specific to the database system + Part II covers topics specific to the database system
implementations and their support in ODB. In particular, it
describes the system-specific 10.1 MySQL Database++ 10 MySQL DatabaseTo generate support code for the MySQL database you will need
to pass the " 10.1.1 MySQL Type Mapping+10.1 MySQL Type MappingThe following table summarizes the default mapping between basic
C++ value types and MySQL database types. This mapping can be
@@ -6498,7 +6538,7 @@ aCC +W2161 ...
to 10.1.2 MySQL Database Class+10.2 MySQL Database ClassThe MySQL This constructor throws the The static 10.1.3 Connection Factory+10.3 Connection FactoryThe 10.1.4 MySQL Exceptions+10.4 MySQL ExceptionsThe MySQL ODB runtime library defines the following MySQL-specific exceptions: -- cgit v1.1 |