D 的 MySQL 语言绑定?

发布于 2024-12-23 13:09:59 字数 876 浏览 0 评论 0原文

是否有任何现有的、可用的 D(特别是 Windows 下的 D 2.0)MySQL 语言绑定仍在维护、更新,甚至远程访问?数十次 Google 搜索大多仅指向一位之前在 http://www.steinmole.de/d/ 托管的一些代码曼弗雷德·汉森(Manfred Hansen),但这个网站现在已经死了,而且似乎任何地方都不存在镜像副本。

我确实找到了这个: http://code.google.com/p/mysql4d/ 以及另一个名为 DDBI 的项目显然仅适用于 D 1.0 和 Tango。不过,我在链接这些时遇到了麻烦。更多的谷歌搜索表明我需要使用 implib.exe 将 MySQL 中包含的 libmysql.dll 转换为 libmysql.lib,但是该程序似乎对我来说失败了:

>implib.exe /system libmysql.lib libmysql.dll     
Digital Mars Import Library Manager Version 7.6B1n
Copyright (C) Digital Mars 2000.  All Rights Reserved.
Error(10): Error: cannot read DLL input file

谷歌搜索“无法读取 DLL 输入文件”揭示了彻底的恐怖:零结果。我是否做错了什么,或者我的某些版本的 MySQL 的 DLL 无法再转换?

版本:

DMD32 D Compiler v2.056
MySQL Ver 14.14 Distrib 5.5.8, for Win64 (x86)

Are there any existing, working MySQL language bindings for D (particularly D 2.0 under Windows) still being maintained, updated, or even remotely poked at? Dozens of google searches mostly only point to some code previously hosted at http://www.steinmole.de/d/ by one Manfred Hansen, but this site is now dead and no mirrored copies seem to exist anywhere.

I did manage to find this: http://code.google.com/p/mysql4d/ as well as another project called DDBI that apparently only works with D 1.0 and Tango. I am having trouble linking these, though.. more google searches indicate that I need to convert the libmysql.dll included with MySQL to a libmysql.lib using implib.exe, however the program seems to be failing for me:

>implib.exe /system libmysql.lib libmysql.dll     
Digital Mars Import Library Manager Version 7.6B1n
Copyright (C) Digital Mars 2000.  All Rights Reserved.
Error(10): Error: cannot read DLL input file

A google search for "cannot read DLL input file" reveals utter horror: zero results. Am I doing something completely wrong, or do I have some version of MySQL whose DLL can no longer be converted?

Versions:

DMD32 D Compiler v2.056
MySQL Ver 14.14 Distrib 5.5.8, for Win64 (x86)

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

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

发布评论

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

评论(1

仅一夜美梦 2024-12-30 13:09:59

有多种 MySQL 绑定,从这个开始: https://github.com/adamdruppe/misc-stuff-include-D-programming-language-web-stuff/blob/master/mysql.d

但是(恕我直言)最有希望的项目是 MySQL 协议的本机 D 实现。可以在这里找到: https://github.com/britseye

对于您在上面尝试的方法,您需要 COFFIMPLIB 工具来创建 OMF 版本的 MySQL 库libmysql.lib 来自与 MySQL 一起分发的 libmySQL.dll 文件。

更新:Steve 的 mysqln 项目的这两个分支处于活动状态: https://github.com/simendsjo/mysqlnhttps://github.com/rejectedsoftware/mysql-native

There are several MySQL bindings, starting with this one: https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/mysql.d

But (IMHO) the most promising project is the native D implementation of the MySQL protocol. It can be found here: https://github.com/britseye .

For the one you tried above, you need the COFFIMPLIB tool to create an OMF version of the MySQL library libmysql.lib from the one distributed with MySQL for the libmySQL.dll file.

Update: These two forks of Steve's mysqln project are active: https://github.com/simendsjo/mysqln and https://github.com/rejectedsoftware/mysql-native .

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