Move database classes and functions from kojihub.py to koji/db.py
Move QueryProcessor, InsertProcessor, UpdateProcessor, BulkInsertProcessor, _applyQueryOpts, get_event, _dml, _fetchMulti, _fetchSingle, _singleValue, _multiRow, _singleRow Update koji-sweep-db script to DB Processors Fixes: https://pagure.io/koji/issue/3466
This commit is contained in:
parent
fadda5b755
commit
1cfe6538db
30 changed files with 1170 additions and 1141 deletions
|
|
@ -17,7 +17,8 @@ from proton.reactor import Container
|
|||
import koji
|
||||
from koji.context import context
|
||||
from koji.plugin import callback, convert_datetime, ignore_error
|
||||
from kojihub import QueryProcessor, InsertProcessor, get_build_type
|
||||
from kojihub import get_build_type
|
||||
from koji.db import QueryProcessor, InsertProcessor
|
||||
|
||||
CONFIG_FILE = '/etc/koji-hub/plugins/protonmsg.conf'
|
||||
CONFIG = None
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
import sys
|
||||
|
||||
import koji
|
||||
import koji.policy
|
||||
from koji.db import QueryProcessor, nextval
|
||||
from koji.context import context
|
||||
from koji.plugin import callback, export
|
||||
import koji.policy
|
||||
sys.path.insert(0, "/usr/share/koji-hub/")
|
||||
from kojihub import ( # noqa: E402
|
||||
QueryProcessor,
|
||||
_create_build_target,
|
||||
_create_tag,
|
||||
_delete_build_target,
|
||||
|
|
@ -20,11 +20,11 @@ from kojihub import ( # noqa: E402
|
|||
get_build_target,
|
||||
get_tag,
|
||||
get_user,
|
||||
nextval,
|
||||
policy_get_user,
|
||||
readInheritanceData,
|
||||
)
|
||||
|
||||
|
||||
CONFIG_FILE = "/etc/koji-hub/plugins/sidetag.conf"
|
||||
CONFIG = None
|
||||
ALLOWED_SUFFIXES = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue