pypyodbc帮助查找入门教程 [英] pypyodbc help to find tutorials for begining

查看:407
本文介绍了pypyodbc帮助查找入门教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题听起来很愚蠢,但是有人可以给我提供带有PostgreSQL的pypyodbc ....?我一直在互联网上搜索它,却一无所获*。

The question may sound stupid but can someone please provide me with pypyodbc with postgresql....? I have been searching it in internet forever and havenot found anything* literally anything.

推荐答案

我无法想象您为什么要使用pypyodbc;使用 DB-API 驱动程序直接代替,,例如 psycopg2 或维护程度较差但对PyPy更友好的 pyPgSQL ,或者较新的较不成熟的 py-postgresql 。有关更多信息,请参见数据库驱动程序列表

I can't imagine why you'd want to use pypyodbc; look at using a DB-API driver directly instead, such as psycopg2 or the less-well-maintained but more PyPy-friendly pyPgSQL, or the newer less mature py-postgresql. See the database driver list for more info.

如果由于某种原因您需要做一些奇怪而又晦涩的事情,例如使用PyPy中的ODBC连接到PostgreSQL ...

If for some reason you need to do something weird and obscure like using ODBC from PyPy to connect to PostgreSQL...

有时候,作为程序员,我们有做一些令人恐惧的事情-走出教程的轨道,自己思考问题;-)

Sometimes, as programmers, we have to do something scary - go off the tutorial track and think about the problem ourselves ;-)

当面对这个可怕的挑战时,有一些工具可以大大简化这一过程:

When facing this terrible challenge there are a few tools that greatly ease the process:


  • 我们正在使用的每个组件的文档;和

  • 为涉及的部分组件编写的教程/指南,但不是全部。

在这种情况下,这表明您的关键资源是:

In this case, that suggests that your key resources are:

  • The pypyodbc code and packages, which contain links to:

gcode Wiki上的各种pypyodbc文档入门示例一个链接,表明实际上实际上是与pyodbc 相同,等等。

psqlODBC页面,带有有用的链接。

PostgreSQL文档

Microsoft在ODBC上的文档

某些示例是您想要的东西,但是连接到不同的数据库引擎。您必须将其适配到PostgreSQL和psqlODBC。有关每个组件如何工作的文档将帮助您做到这一点;例如:

Some of the examples are the sort of thing you want, but connect to different database engines. You will have to adapt them to PostgreSQL and psqlODBC. The documentation on how each component works will help you do that; for example:


  • 了解如何使用引用MS SQL Server的示例连接到DSN

  • 了解如何从psqlODBC文档中在psqlODBC中创建DSN

  • 组合该知识以连接到psqlODBC DSN

了解到pypyodbc在功能上与pyodbc非常相似,这也使您可以扩大搜索范围涵盖pyodbc的示例:

Having learned that pypyodbc is very similar to pyodbc in function, this lets you widen your search for examples covering pyodbc, too:

现在,您的任务是合成这些元素,从不同的文档中学习相关部分,因此您可以将整体是从您学到的个人知识中得出的。

Now, your task is to synthesize these elements, learning relevant parts from different pieces of documentation, so you can put together a working whole from the individual things you have learned.

这篇关于pypyodbc帮助查找入门教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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