Rad Studio Delphi XE 和 PostgreSQL

发布于 2024-12-27 11:27:42 字数 903 浏览 0 评论 0原文

我正在开始一个新项目,这必须在 Delphi 中完成,因此我们得到 Rad Studio XE(不是 XE2)。我从未在 Delphi 中编写过代码,我是一名经验丰富的 C#.NET-MSSQL 程序员,这就是这个项目令人兴奋的原因。

对于DB来说,我们买不起MSSQL,但Express版也不剩。所以,我们选择 PostgreSQL,我们有关于它的非常好的参考资料。我发现这很有趣。

但问题来了,连接的提供者。我开始研究这个问题,发现了很多选择,有一些具有商业许可的产品(AnyDac等)。但我们买不起。然后我找到了Zeoslib。也许这就是我们正在寻找的,但是,我找不到它并为XE安装它。在sourceforge门户中,最新版本(它是alpha)仅适用于Delphi14(XE是Delphi15)。

我也读到,它需要进行编译才能安装(我需要一步一步的傻瓜手册:D)。但是,这让我产生疑问。它将如何部署在客户端上。它是一个dll吗?

该项目是一个桌面应用程序,它使用 CRUD 语句连接到服务器(DBMS),也许还有一些存储过程,仅此而已。当然会有不止1个客户。只是读取、更新删除等等...,但不是同时进行,所以流量、并发不是大问题。

在 NET 中,我使用 sqlclient 命名空间创建连接、命令,仅此而已。我在 Delphi 中找到了 TSQL、TADO 和其他类似的对象。所以这并不难。

因此我们计划改用 MSSQL Express。

但在此之前:

还有其他选项可以将我的 RAD XE 应用程序与 Postgres 连接吗? 如果有人知道如何启用 zeoslib,你能告诉我吗? zeoslib 如何与我的应用程序一起分发到许多 PC 上?

或者

MSSQL Express 是这个项目的不错选择吗? (毕竟不大)

看完了,MySQL也用zeoslib,当然还有商业提供商。这就是我们放弃它的原因之一。

I'm starting a new project, and this must be done in Delphi, so we get Rad Studio XE (not XE2). I have never wrote code in Delphi, I'm a C#.NET-MSSQL experienced programmer, that's why this project is exciting.

For DB, we cannot afford MSSQL, but the Express Edition is not leaved. So, we choose PostgreSQL, we have very excellent references about it. And I found it quite interesting.

But here comes the problem, the provider for the connection. I began research for this problem, and I found many options, there are some products with commercial license (AnyDac, and others). But we can't afford them. Then I found Zeoslib. Maybe it is what we're looking for, however, I can't find it and install it for XE. In the sourceforge portal, the latest version (it's an alpha), only works until Delphi14 (XE is Delphi15).

I've read too, that it requires to be compiled for the install (I need a step by step for dummies manual :D). But, this makes me doubt. How it will be deployed on the client. Is it a dll?

The project is a desktop application which connects to a server (DBMS), using CRUD statements, maybe some sprocs, ans that's all. Of course there will be more than 1 client. Just reading, updating deleting, etc..., but not at the same time, so traffic, concurrency is not a big problem.

In NET, I use the sqlclient namespace create connections, commands and that's all. I've found in Delphi the TSQL, TADO, and other objects like that. So it will be not hard at all.

So we're planning to use MSSQL Express instead.

But before that:

Is there another option to connect my RAD XE app with Postgres?
If someone knows how to enable zeoslib, can u tell me?
How is zeoslib distributed with my app in many PC's?

or

Is MSSQL Express a good choice for this project? (It's not big after all)

After reading, MySQL uses zeoslib too, and of course, the commercial providers. That's why we discarded it, among other reasons.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

灼痛 2025-01-03 11:27:42
  1. 组件库(例如 ZeosLib 或 AnyDAC)需要将其编译为二进制包 (BPL) 才能安装到 RAD Studio IDE 中。库本身可以静态链接到 EXE(不需要从库中部署任何内容),也可以使用运行时包构建 EXE(您需要部署库运行时包)。此外,您还需要部署 libpq.dll - PostgreSQL 客户端软件。
  2. 如果您了解 SQL Server,则使用 SQL Server Express 版本。并可能继续使用 dbGo (ADO) 组件。 PostgreSQL 在很多方面与 SQL Server 有很大不同,因此您需要花时间来学习 PostgreSQL。这将比商业图书馆贵得多。
  1. A component library, like ZeosLib or AnyDAC, requires to compile it into binary packages (BPL) to install into RAD Studio IDE. A libray itself may be either statically linked into EXE (nothing from library to deploy), or EXE may be built with run-time packages (you need to deploy library run-time packages). Additionally you will need to deploy libpq.dll - PostgreSQL client software.
  2. If you know SQL Server, then use SQL Server Express edition. And probably stay with dbGo (ADO) components. PostgreSQL is quite different from SQL Server in many aspects, so you will need to spend the time to learn PostgreSQL. Which will be far more expensive than commercial libraries.
娇女薄笑 2025-01-03 11:27:42

Zeos trunk 与 Delphi XE 配合良好。不要让“树干”吓到你。突变数量并没有那么高。

Zeos trunk works fine with Delphi XE. Don't let the "trunk" bit scare you. The mutation count is not that high.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文