开发者

Python: Connecting to db without any external libraries

开发者 https://www.devze.com 2023-02-15 05:44 出处:网络
I\'m workin开发者_开发问答g on a client machine running suse linux and python 2.4.2. I\'m not allowed to dowload anything from the net including any external libraries. So, is there any way I can conn

I'm workin开发者_开发问答g on a client machine running suse linux and python 2.4.2. I'm not allowed to dowload anything from the net including any external libraries. So, is there any way I can connect to a database (oracle) using only the default libraries?


No. There is nothing in the standard library for connecting to database servers.


You could look at the Apex Listener and/or PL/SQL Embedded Gateway (basically a webserver in the DB). These both provide HTTP access to database resources (eg getting data as JSON). Though obviously this shifts the 'heavy lifting' to the database platform.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号