4 ms·
> all it takes is to install php and php-pdo to have a consistent api for db access to get started with, which for python is not the case What's the difference
by drcongo 3y ago
> all it takes is to install php and php-pdo to have a consistent api for db access to get started with, which for python is not the case
What's the difference between that and `pip install psycopg2` (which actually seems easier to me)?
- candl 3y agopdo is a common interface layer for databases for php, like jdbc in java or ado.net in C# so I can use the same api for any supported database. In python technically dbapi standard exists for the same task, but the driver apis annoyingly vary so much between themselves that if i have to i go with sqlalchemy, but it's no longer a lightweight solution
- drcongo 3y agoThat makes sense, thanks. It seems I somehow forgot that databases other than Postgres exist.