git-interface: Add database abstraction layer
commit2915abb9d35308150ec107c5f4664e116daaf1de
authorLukas Fleischer <lfleischer@archlinux.org>
Wed, 3 Aug 2016 00:20:40 +0000 (3 02:20 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Fri, 5 Aug 2016 10:05:22 +0000 (5 12:05 +0200)
tree1773a9c3b024904018ea46fd44c12865750bd673
parent2cd69bf66d244c7d438992aff1a03ea52cdba819
git-interface: Add database abstraction layer

Add a new class that connects to the database specified in the
configuration file and provides an interface to execute SQL queries.
Prepared statements with qmark ("?") placeholders are supported.

Replace all direct database accesses with calls to the new abstraction
layer.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
git-interface/db.py [new file with mode: 0644]
git-interface/git-auth.py
git-interface/git-serve.py
git-interface/git-update.py