Use SQLite in a simpler and less error-prone way
The previous practice of keeping around prepared statements is somewhat harmful, as they end up bound to the connection. Drop the statementMap concept, and just use tx.Query() directly instead. Reduce issues with concurrent write access to SQLite by running db.SetMaxOpenConns(1).
Showing with 79 additions and 163 deletions