首页> 外文期刊>C - C++ Users Journal >A C++ Lightweight Wrapper for Databases
【24h】

A C++ Lightweight Wrapper for Databases

机译:用于数据库的C ++轻量级包装器

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Any programmer who has used a database interface such as the Oracle native API, ODBC, OLE DB, or ADO, knows that application code can get polluted by the types and structures these database interfaces supply. In other words, any technology you use tries to dominate your program! In this article, I present a library that provides a straightforward interface to any SQL database, thereby decoupling you from tedious database structures. Mixing the handle-body idiom with templates creates the decoupling without losing type safety. All you have to do is decide which database you want to use, then add/manipulate/extract data from the database by executing SQL statements, simple transactions, queries, and autocreationpf UPDATE, INSERT, and DELETE statements.
机译:使用过数据库接口(例如Oracle本机API,ODBC,OLE DB或ADO)的任何程序员都知道,应用程序代码可能会受到这些数据库接口提供的类型和结构的污染。换句话说,您使用的任何技术都试图控制您的程序!在本文中,我提供了一个库,该库提供了到任何SQL数据库的直接接口,从而使您摆脱了繁琐的数据库结构。将句柄主体习语与模板混合在一起可以创建去耦,而不会丢失类型安全性。您要做的就是确定要使用的数据库,然后通过执行SQL语句,简单事务,查询以及自动创建UPDATE,INSERT和DELETE语句,从数据库中添加/操作/提取数据。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号