3 ms·
This works on multiple databases, yet still uses plain old sql. I think it's simpler than using a multi-database ORM for plain old sql, or using a databases' dr
by benatkin 11y ago
This works on multiple databases, yet still uses plain old sql. I think it's simpler than using a multi-database ORM for plain old sql, or using a databases' driver directly, like psycopg2.
Edit: actually it just works on postgres. I don't know if there are plans to make it work on other SQL databases.
- monkmartinez 11y agoReally? Have you looked at the code? It looks like it's hardwired to psycopg2 and only works with Postgres. I could be wrong.
- benatkin 11y agoI have now, and you are correct. It also says so in the README. The API looks like it's designed to be compatible with any SQL database, though.
- Chirael 11y agoThe github page says "Records is a very simple, but powerful, library for making raw SQL queries to Postgres databases" - so it does seem PG specific