无需安装的C ++数据库访问 [英] C++ Database Access With No Required Installation

查看:186
本文介绍了无需安装的C ++数据库访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个数据库,我可以运行SQL语句而不必安装数据库服务器。也就是说我需要能够选择/插入/更新只给出数据库文件和任何外部库的数据库。

I am looking for a database that can I run SQL statements on without having to have a database server installed. I.e. I need the ability to select/insert/update a database given only the database file and any external libraries.

这里是我的情况:


  • 我使用C ++来解析一些奇怪格式的二进制文件
    ,我想将它们存储到某种类型的数据库中,以提供更多$

  • 一旦文件被插入到数据库中,我将使用C#到
    编写一个用户可以交互的界面/ GUI

  • 我使用C ++来读取文件的速度,因为
    我已经写了这个部分。

  • 我使用C#,因为它更容易做GUI编程。

  • I am using C++ to parse through a number of oddly-formatted binary files, and I would like to store them into some type of database to offer more convenient access to the data.
  • Once the files have been inserted into the database, I will use C# to write an interface/GUI by which a user can interact with the database.
  • I'm using C++ for the speed of reading the files and because I've already written that part.
  • I'm using C# because it is much easier to do GUI programming.

这里是我的要求:

Here are my requirements:


  1. 数据库必须提供一种仅使用外部库(无安装)在C ++中运行命令的方法

  2. 我应该能够将数据库移动到任何类似的[Windows]计算机并运行我的应用程序。

我相信这是可能与MS Access * .mdb文件使用ADO或JET或类似的东西,但是,我想听到一些替代品。请在您的答案中提供数据库和C ++引擎/库。

I believe this is possible with MS Access *.mdb files using ADO or JET or something like that, however, I would like to hear some alternatives. Please provide the database and the C++ engine/libraries in your answer.

我的优先级是:


  1. Lite-ness

  2. 性能(插入/选择速度)

  3. 客户端代码简单设置)

谢谢大家。

推荐答案

这里不能出现 SQLite 错误。

它足够小,可嵌入许多应用程式中(请参阅这里,从Photoshop到Apple Mail + Safari,Dropbox,Firefox,Chrome,Skype等更多的着名应用程序列表),但已经足够覆盖您可能需要的大多数SQL方面。非常支持,以及API和语言的广泛覆盖。

It is small enough to be embedded in many apps (see e.g. here for a list of famous apps ranging from Photoshop to Apple Mail + Safari, Dropbox, Firefox, Chrome, Skype and more), yet complete enough to cover most SQL aspects you may need. Great support too, and wide coverage in terms of APIs and languages.

它可能有锁和多个写访问的问题。但对于单个客户端,它应该工作完美。

It can have issues with locks and multiple write accesses. But for a single client it should work perfectly fine.

这篇关于无需安装的C ++数据库访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆