Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an equivalent for PHP PDO in Python?

Tags:

python

php

pdo

My favorite element of PHP is the PDO object. Is there a library or built in module for Python that can rival it?

like image 558
Hubro Avatar asked May 18 '11 07:05

Hubro


People also ask

What is PDO in Python?

Project description. PDO: Python Database Objects, is a collection of objects for use with Phase or with the Python Programing Language.

Is PHP PDO deprecated?

PDO (PHP Data Objects) However, this extension was deprecated in 2012.

What is PDO method in PHP?

PDO refers to PHP Data Object, which is a PHP extension that defines a lightweight and consistent interface for accessing a database in PHP. It is a set of PHP extensions which provide a core PDO class and database-specific driver.

How does PHP PDO fetch data?

Fetch data from a result set by calling one of the following fetch methods: To return a single row from a result set as an array or object, call the PDOStatement::fetch method. To return all of the rows from the result set as an array of arrays or objects, call the PDOStatement::fetchAll method.


1 Answers

Have you taken a look at Python Database Objects ?

like image 146
Tudor Constantin Avatar answered Sep 28 '22 01:09

Tudor Constantin