问题描述
我想知道是否有其他可用的Delphi XE-2开源组件可以连接到postgreSQL,而不是使用ODBC等过时的技术。
I would like to know if there are any open source components available for Delphi XE-2 that can connect to postgreSQL other than using outdated techniques like ODBC.
目前仅需要Win32支持,但是如果还提供Win64和OS-X支持,那将是一个好处。
For now just Win32 support is needed, but if Win64 and OS-X support is also available that would be a bonus.
我在Google上搜索了一下,但是唯一可用的库(ZEOS)似乎不再处于活跃开发中。
作为Delphi XE2的补丁,但我无法对其进行编译。
I googled around a bit, but the only lib that's available (ZEOS) looks like it is no longer in active development.
There does seem to be a patch for Delphi XE2 but I could not get it to compile.
推荐答案
原来,您可以使ZEOS在Delphi XE2上运行,并且据我测试,所有DB功能都可以正常工作。
Turns out you can get ZEOS to work on Delphi XE2 and as far as I've tested all DB functionality works.
请按照以下步骤操作:
- 使用SVN *下载ZEOS的Delphi XE2归档文件位于:
- 将
zeos
文件夹放在适当的位置,我假设c:\borland
- 不要打开Delphi ,而是打开
C:\borland\zeos\packages\delphi16\ZComponent.dpk
并删除尾随的{$ IFDEF}
(记住保持;
不变)。 - 打开
c:\borland\zeos\packages\delphi16\ZeosDbo.groupproj
。 - 选择
全部构建
- 打开
c:\borland\zeos\packages\delphi16\build
在资源管理器中,复制所有.bpl
文件,然后将其复制到c:\borland\delphixe2\bin
-
组件->安装软件包
->[添加...]
并选择
c:\borland \delphixe2\bin\ZComponentDesign.bpl
- Use SVN* to download the Delphi XE2 archive for ZEOS at:
https://zeoslib.svn.sourceforge.net/svnroot/zeoslib/branches/testing - Put the
zeos
folder in the appropriate place, I'm assumingc:\borland
- Do not open Delphi yet, but instead open
C:\borland\zeos\packages\delphi16\ZComponent.dpk
in wordpad and remove the trailing{$IFDEF}
(remember to keep the;
in place). - Open
c:\borland\zeos\packages\delphi16\ZeosDbo.groupproj
. - Choose
build all
- Open
c:\borland\zeos\packages\delphi16\build
in explorer, copy all.bpl
files and copy those toc:\borland\delphixe2\bin
Component -> install packages
->[add...]
and choosec:\borland\delphixe2\bin\ZComponentDesign.bpl
作为SVN客户端,我已经从以下地址下载了SVN-tortoise:
与这两个SVN插件结合使用Firefox
as a SVN client I've downloaded SVN-tortoise from: http://tortoisesvn.net/downloads.html
Combined with both the SVN plug-ins for Firefox
这篇关于PostgreSQL的开源组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!