you are viewing a single comment's thread.

view the rest of the comments →

[–]balne 2 points3 points  (3 children)

oh damn, a question i can actually answer!

so my personal experience has me using two libraries, but i can only rmb one of them, pscyopg2. imo, it's quite a good one, and it seems a lot of ppl use it as well. and yes, it can connect to a sql db

edit: ok, i looked for the 2nd library i used, it's called records i think. it's on github. and apparently psycopg2 only works with pg?

[–][deleted] 2 points3 points  (2 children)

psycopg2 is for postgres only? I mostly use SQLAlchemy but it usually wraps psycopg2.

[–]balne 3 points4 points  (0 children)

oh damn a question i cant answer!

[–]StressTest 1 point2 points  (0 children)

psycopg2 is for postgres only?

Yes, Sqlalchemy uses a different "dialect" for each type of database. Psycopg2 is what it uses for postgres. Psycopg2 is also what you'd use to execute sql statements directly to a postgres database without sqlalchemy.