# libodb-dm8-2.4.0 **Repository Path**: XiaoCode666/libodb-dm8-2.4.0 ## Basic Information - **Project Name**: libodb-dm8-2.4.0 - **Description**: 基于odb官方的2.4.0 版 odb-oracle 修改得到支持达梦8数据的odb数据库适配 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-09-18 - **Last Updated**: 2024-10-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 基于odb官方的2.4.0 版 odb-oracle 修改得到支持达梦8数据的odb数据库适配 主要修改了: 1.源码中所有OCI -> DCI 2.#include -> #include 3.所有引用#inlude 前增加 #define DCI_EXPORT 4.类型OraText 替换为 dmtext 5.类型ub8 替换为 dub8 6.修改了connection.cxx中创建DCI连接的步骤(odb-oracle中创建OCI连接的步骤不适用于达梦DCI) 7.database.cxx中去除了以“//“ 开头的服务器地址变量 依赖: libodb-2.4.0 达梦8 dci数据库驱动 dm8 dci,在dm8安装后目录内的drivers/dci 下 驱动内目录结构如下: ├── include │ ├── DCI1.h │ └── DCI.h ├── libcrypto.so ├── libdmdci.a ├── libdmdci.so ├── libdmdpi.so ├── libdmfldr.so └── libssl.so 编译: ./configure --with-oci=/home/sx/dmdbms/drivers/dci make make install 使用ODB创建数据库连接示例: unique_ptr db (new odb::oracle::database ( "SYSDBA", "SYSDBA", "", "127.0.0.1", 5236)); ODB is an object-relational mapping (ORM) system for C++. It provides tools, APIs, and library support that allow you to persist C++ objects to a relational database (RDBMS) without having to deal with tables, columns, or SQL and without manually writing any of the mapping code. For more information see: http://www.codesynthesis.com/products/odb/ This package contains the Oracle ODB runtime library. Every application that includes code generated for the Oracle database will need to link to this library. See the NEWS file for the user-visible changes from the previous release. See the LICENSE file for distribution conditions. See the INSTALL file for prerequisites and installation instructions. Send questions, bug reports, or any other feedback to the odb-users@codesynthesis.com mailing list.