6 comments

  • Retr0id3 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.
    • overflowy2 hours ago
      Why do you say it's bad?
      • Retr0id1 hour ago
        Everything to do with transactions, including nested transactions.
  • jph0032 minutes ago
    For anyone interested in an ergonomic API over this-- I ported sqlite-utils to apsw a while back: <a href="https:&#x2F;&#x2F;github.com&#x2F;AnswerDotAI&#x2F;apswutils" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;AnswerDotAI&#x2F;apswutils</a><p>I&#x27;ve been using it a lot over the last year or two and it&#x27;s worked great.
  • arc-in-space3 hours ago
    This library is great, and recently saved a project of mine. Figuring out what was going on with some of python&#x27;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.<p>(This documentation page explains the library&#x27;s intent: <a href="https:&#x2F;&#x2F;rogerbinns.github.io&#x2F;apsw&#x2F;pysqlite.html" rel="nofollow">https:&#x2F;&#x2F;rogerbinns.github.io&#x2F;apsw&#x2F;pysqlite.html</a>)
    • biorach3 hours ago
      what quirks did you bump into with sqlite3?
  • dex0shubham1 hour ago
    I was experimenting with APSW and I noticed that when a query doesn&#x27;t return any row, it becomes difficult to get column names from the cursor, is there any recommended way to do this ?
  • mont_tag4 hours ago
    Thank you HackerNews. I learned something new and will be using APSW for my next Sqlite project.
  • scosman4 hours ago
    It’s a great wrapper, but we should add a year. Not exactly new.
    • Retr0id3 hours ago
      The latest commit was 1 hour ago
      • scosman3 hours ago
        ahh. It’s been around a while, but maybe the date convention is for articles not repos.
      • arcanemachiner3 hours ago
        Abandonware!
    • gjvc1 hour ago
      new to many people, just not you.