- 06 Jun, 2021 3 commits
-
-
Kevin Morris authored
This fixes a deprecating warning when using SQLAlchemy 1.4. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
+ Added Session class and global session object to aurweb.db, these are sessions created by sqlalchemy ORM's sessionmaker and will allow us to use declarative/imperative models. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
We had no coverage over aurweb.scripts.popupdate. This test covers all of its functionality. Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 18 May, 2021 2 commits
-
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
Kevin Morris authored
Signed-off-by:
Kevin Morris <kevr@0cost.org>
-
- 20 Feb, 2021 1 commit
-
-
Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 27 Feb, 2020 1 commit
-
-
The new schema was generated with sqlacodegen and then manually adjusted to fit schema/aur-schema.sql faithfully, both in the organisation of the code and in the SQL generated by SQLAlchemy. Initializing the database now requires the new tool aurweb.initdb. References to aur-schema.sql have been updated and the old schema dropped. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 23 Nov, 2019 1 commit
-
-
Lukas Fleischer authored
We support multiple database backends. Don't require Python modules for all backends to be installed. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 29 Sep, 2016 1 commit
-
-
Lukas Fleischer authored
Instead of using relative imports, add support for installing the config and db Python modules to a proper location using setuptools. Change all git-interface scripts to access those modules from the search path. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 14 Aug, 2016 1 commit
-
-
Lukas Fleischer authored
This is used by the MySQL database backend. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
- 05 Aug, 2016 3 commits
-
-
Lukas Fleischer authored
In addition to MySQL, add support for SQLite to the database abstraction layer. Also, add a new configuration option to select the DBMS. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
Add a new module that automatically locates the configuration file and provides methods to obtain the values of configuration options. Use the new module instead of ConfigParser everywhere. Signed-off-by:
Lukas Fleischer <lfleischer@archlinux.org>
-
Lukas Fleischer authored
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>
-