NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲apsw: Another Python SQLite Wrapper (github.com)
Retr0id 2 hours ago [-]
In a sentence, I'd say apsw is "the SQLite lover's SQLite library". The python stdlib one tries to provide a generic interface ("DBAPI") which is great if you want to be able to swap to a different database engine later, but it's bad for actually getting the most out of SQLite.
overflowy 40 minutes ago [-]
Why do you say it's bad?
Retr0id 13 minutes ago [-]
Everything to do with transactions, including nested transactions.
arc-in-space 2 hours ago [-]
This library is great, and recently saved a project of mine. Figuring out what was going on with some of python's sqlite3 quirks was too much of a hassle, meanwhile this more or less just worked the way I expected it to. Because of this experience I started defaulting to it over sqlite3 for other projects as well.

(This documentation page explains the library's intent: https://rogerbinns.github.io/apsw/pysqlite.html)

biorach 2 hours ago [-]
what quirks did you bump into with sqlite3?
mont_tag 3 hours ago [-]
Thank you HackerNews. I learned something new and will be using APSW for my next Sqlite project.
scosman 3 hours ago [-]
It’s a great wrapper, but we should add a year. Not exactly new.
gjvc 35 seconds ago [-]
[delayed]
Retr0id 2 hours ago [-]
The latest commit was 1 hour ago
scosman 1 hours ago [-]
ahh. It’s been around a while, but maybe the date convention is for articles not repos.
arcanemachiner 2 hours ago [-]
Abandonware!
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:39:11 GMT+0000 (Coordinated Universal Time) with Vercel.