OTL+代码+实例+帮助

时间:2012-05-18 06:11:15
【文件属性】:

文件名称:OTL+代码+实例+帮助

文件大小:2.89MB

文件格式:RAR

更新时间:2012-05-18 06:11:15

Oracle Odbc DB2 OTL examples

OTL介绍: OTL 是 Oracle, Odbc and DB2-CLI Template Library 的缩写,是一个C++操控关系数据库的模板库,最新版本4.0.104,参见http://otl.sourceforge.net/ 优点:a. 跨平台 b. 运行效率高,与C语言直接调用API相当 c. 开发效率高,起码比ADO.net使用起来更简单,更简洁 d. 部署容易,不需要ADO组件,不需要.net framework 等 缺点: a. 只有C++才可以使用她 b. 说明以及范例不足(已附带了686个实例) This document describes the Oracle, ODBC and DB2-CLI Template Library, Version 4.0 (OTL 4.0). OTL 4.0 is a C++ library based on C++ templates. OTL 4.0 was designed as a combination of a C++ template framework and OTL-adapters. The framework is a generic implementation of the concept of OTL streams. The OTL-adapters are thin wrappers around the database APIs and are used as class type parameters to be passed into the template framework. OTL 4.0 covers the functionality of a full featured C++ database access library with just a handful of classes: otl_stream, otl_connect, otl_exception, otl_long_string, and several template PL/SQL (Oracle) table container classes, generated from the template framework and the OTL-adapters. The OTL code gets expanded into direct database API function calls, so it provides very decent performance (only 10-15% overhead, compared with the database APIs themselves) and reliability in multi-processor environments as well as traditional batch programs. OTL 4.0, being a template library, is highly portable since it is self-sufficient and compact enough. OTL 4.0 is ANSI C++ compliant (ANSI C++ typecasts, clean templatized code, etc.), tightly integrated with the Standard Template Library (STL) via STL-compliant stream iterators, and natively supports the STL std::string's in otl_stream's. OTL integrates with ACE, and supports ACE_TStrings. OTL 4.0 supports all versions of Oracle starting with 7.3 (natively via the corresponding version of the OCI), DB2 UDB LUW / zOS (natively via DB2 CLI), MS SQL Server 2005/2008 (natively via SNAC), Informix 11 (natively via Informix CLI), TimesTen 7 and higher (natively TimesTen CLI), SAP-MAX/DB (natively via SAP/DB CLI), ODBC 3.x as well as ODBC 2.5 (for legacy applications) compliant data sources in MS Windows, Linux/Unix/Mac OS X (via unixodbc and iODBC driver managers): Sybase, MySQL, PostgreSQL, EnterpriseDB, SQLite, MS ACCESS, Firebird, etc. The list of supported database back ends is growing. In the last few years, transition from the 32-bit platforms to the 64-bit platforms has occurred: OTL's source code is portable, and it support both 32-bit and 64-bit C++ compilers. Also, OTL supports UTF-8 and UTF-16 for Oracle, and UTF-16 for the rest of the database types, when the underlying database API / ODBC driver supports it.


【文件预览】:
otl4_examples.zip
otl4_htm.zip
otlv4_h.zip

网友评论

  • 骗子,就是官方的东西
  • 好东西里面东西不错
  • 试了,可以运行
  • 很不错的数据库使用库
  • 里面的例子的确有参考意义
  • 资料不错!正在测试里面的例子。谢谢楼主。
  • 资料很全,方便参考!
  • 还可以,值得参考
  • 基本上可以用,但是好像没有大批量插入的列子
  • 里面例子非常多,谢谢楼主
  • 大致的读了一下,没全看明白。 工作中没使用场景,就没有深入专研,不好意思。
  • 资料不错!正在测试里面的例子。谢谢楼主。
  • 外网上不了,只能在这里找打下载
  • 测试过能通过很好
  • 测试通过,感谢,很好的资源~
  • 测试了。 能用,不过要创建ODBC连接。我不喜欢这种方式。 不可能让每个用户都安装个sqlserver。
  • 感谢楼主的分享,有很多实例,可以帮我们更好的使用OTL模板库,来操作数据库。
  • 可惜不识别汉字,只能识别数字和字母。
  • 例子非常多,很好
  • 很全的资料!谢谢
  • 十分感谢楼主。资料很好很全面。
  • 挺好的资料,已测试通过!
  • 这方面不是很熟悉!下载下载慢慢学习吧!谢谢
  • 非常感谢LZ分享。可惜没有lib
  • 管网已经不能下载,感谢楼主分享,但是没有lib库
  • 看代码写程序最快了,就是从实践中来再到实践中去,对unix/linux程序员来说,otl是必备技能
  • 挺好用的,终于找到了
  • 太好了,感谢lz呀。很全的资料!
  • 很好很全面的资源,官网已经不能访问了,感谢楼主的分享。
  • 很好的资料,收藏