通过Scheme与数据库交互
我尝试学习方案,作为一个测试项目,我想创建一个非常简单的网站,包含 1-2 个数据库查询(首选 MySQL,但 PostgreSQL 也可以)。
我知道这不是真正的计划领域,但我仍然想看看我能走多远。 可悲的是,我似乎已经坚持使用数据库,并在谷歌上搜索“方案数据库”或包括这个词的任何其他组合(正如预期的那样,考虑到这种情况下方案的双重含义)并不是很有帮助。
您能给我有关如何从方案程序访问数据库的任何提示吗?
我读过一些关于连接 mysql 客户端程序的方案代码来做到这一点,但我更喜欢更直接的东西。
谢谢。
i try to learn scheme and as a test project i wanted to create a very simple website with 1-2 database queries (MySQL preferred, but PostgreSQL would be ok, too).
I know it's not really schemes domain but i still want to see how far i can come.
Sadly, it seems i'm already stuck at using a database and googling for "scheme database" or any other combination including this words was (as expected considering the double meaning of scheme in this case) not very helpful.
Can you give me any hints on how to access a database from a scheme program?
I read something about scheme code interfacing a mysql client program to do that but i'd prefer something more direct.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GNU Guile 已经拥有支持 Postgres、MySQL 和 SQLite 的数据库接口。这是
称为 Guile DBI。您可以尝试的其他方案实现是: SISC (可以连接
任何 JDBC 兼容数据库,包括 MySQL)和 Spark-Scheme (可以连接到任何
ODBC 兼容数据库,包括 MySQL 并与 SQLite 捆绑在一起)。另请注意,大多数
方案实现具有某种形式的外部函数接口,可以帮助您
编写您自己的 MySQL->Scheme Connector。
GNU Guile already has a database interface that supports Postgres, MySQL and SQLite. It is
called Guile DBI. Other Scheme implementations you may try are: SISC (Can connect
to any JDBC compliant database, including MySQL) and Spark-Scheme (Can connect to any
ODBC compliant database, including MySQL and comes bundled with SQLite). Also note that most
Scheme implementations has some form of Foreign Function Interface that will help you
to write your own MySQL->Scheme Connector.