ODB Examples

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

ODB Examples


    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.


      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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值