ODB Examples

http://www.codesynthesis.com/products/odb/examples.xhtml

The following list gives an overview of the examples available in the odb-examples package. Each example is linked to its source code in the repository which also includes a README file with a more detailed description of the example.

hello

A "Hello World" example that shows how to use ODB to perform basic database operations.

query

Shows how to use the ODB Query Language to search the database for persistent objects matching certain criteria.

composite

Shows how to declare and use composite value types.

container

Shows how to use containers as data members in persistent objects.

relationship

Shows how to declare and use unidirectional to-one and to-many relationships.

inverse

Shows how to declare and use bidirectional one-to-one, one-to-many, and many-to-many relationships.

inheritance/reuse

Shows how to use reuse-style inheritance.

inheritance/polymorphism

Shows how to use polymorphism-style inheritance.

section

Shows how to use object sections to implement lazy-loading and change-updating of a subset of data members in a persistent class.

view

Shows how to define and use object, table, mixed, and native views.

prepared

Shows how to use prepared queries.

optimistic

Shows how to use optimistic concurrency.

pimpl

Shows how to use virtual data members to implement a persistent class that employs the pimpl C++ idiom.

access

Shows various approaches used by ODB to access data members that cannot be accessed directly.

c++11

Shows how to use ODB with C++11.

boost

Shows how to persist objects that use Boost smart pointers, containers, and value types with the help of the Boost profile library (libodb-boost).

qt

Shows how to persist objects that use Qt smart pointers, containers, and value types with the help of the Qt profile library (libodb-qt).

schema/embedded

Shows how to generate and use a database schema that is embedded into the application.

schema/custom

Shows how to map persistent C++ classes to a custom database schema.

mapping

Shows how to customize the mapping between C++ value types and database types.
时间: 2024-08-03 18:51:35

ODB Examples的相关文章

linux 下 一步一步安装odb

Introduction This guide presents step-by-step instructions for installing the ODB system on UNIX-like operating systems, such as GNU/Linux, Solaris, etc. For Mac OS X, first see Installing ODB on Mac OS X. For MinGW/MinGW64 (either directly as past o

ODB学习笔记之基础环境搭建

一,简介 ODB是应用于C++的一个开源.跨平台.跨数据库的对象关系映射(ORM)系统. 它可以让你持久化C++对象到关系数据库,而不必处理表.列或者SQL,无需手动编写任何映射代码. ODB支持MySQL,SQLite,PostgreSQL,Oracle和微软SQL Server关系数据库以及C ++98/03和C ++11语言标准. 它还配备了用于Boost和Qt可选的配置文件,让你可以无缝地使用这些库持久化C++类的值类型.容器和智能指针. 它有易用性,简洁的代码,安全,数据库可移植性,优

ODB:C++库环境配置笔记

ubuntu: postgresql:sudo apt-get install libpq-dev then libodbthe odb-pgsql./configure CPPFLAGS=-I/opt/Post*/9.4/include LDFLAGS=-L/.../lib install odbthen libodbthe odb-pgsql./configure CPPFLAGS=-I/opt/Post*/9.4/include LDFLAGS=-L/.../lib oracle:orac

Bg, Fg, &, Ctrl-Z – 5 Examples to Manage Unix Background Jobs

When you execute a unix shell-script or command that takes a long time, you can run it as a background job. In this article, let us review how to execute a job in the background, bring a job to the foreground, view all background jobs, and kill a bac

Can you share some Scala List class examples?

Scala List FAQ: Can you share some Scala List class examples? The Scala List class may be the most commonly used data structure in Scala applications. Therefore, it's very helpful to know how create lists, merge lists, select items from lists, operat

First class ,6 examples anlaysisi

http://www.fgm.cc/learn/ First class ,6 examples anlaysisi          

Useful Qt Examples

Canvas API Basic Layouts Camera Example Video Widget Example Image Viewer Example Part 6 - Loading and Saving Show in Finder / Show in Explorer Item Views Examples http://www.cnblogs.com/grandyang/p/4278324.html http://www.cnblogs.com/grandyang/p/427

OpenERP-Java调用XML-RPC接口示例(Examples for calling XML-RPC interfaces by Java)

官网没有给出CREATE.SEARCH.WRITE等XML-RPC接口的Java 调用示例,在此补充一下. There is no examples on the official site for the XML-RPC operation interfaces for Java, so I posted my code here. /**  * Created by kylin on 14-9-22.  */ import org.apache.xmlrpc.XmlRpcException;

Qt5官方demo解析集33——Qt Quick Examples - Window and Screen

本系列所有文章可以在这里查看http://blog.csdn.net/cloud_castle/article/category/2123873 接上文Qt5官方demo解析集32--Qt Quick Examples - Threading 来到我们Qt Quick Examples的第二个例子了,之所以挑这个demo,主要是我们使用Qt开发界面(尤其是跨平台界面)时,本地屏幕信息与窗口调用是不可避免的课题. 这个例子便向我们展示了在QML中获取本地屏幕信息的方法. 项目树如图,其中share