#3474 Move database classes and functions from kojihub.py to koji/db.py
Merged by tkopecek. Opened by jcupova.
jcupova/koji issue-3466  into  master

Download 3474.patch

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

rebased onto 748032b83d95a88f7ead0f51afb98d61210bae0c

rebased onto 006935c55b9729144d1e216673b7044560172cc2

rebased onto f74163325fcdd275c0800e2cde42d45470ed50f5

It is the same module, so it makes a bit more sense to:

import koji.context
context = koji.context.context
_DBConn = koji.context.ThreadLocal()

rebased onto 67caf983ec72123a8306ce92893a2cf7322ad0a8

@tkopecek fixed

Also makes sense to move processor tests to tests/lib. koji/db.py should be packaged under python3-koji but not under python2-koji (It doesn't make sense there anymore). Note about this should be part of https://docs.pagure.org/koji/supported_platforms/.

Related change is in koji-sweep-db which should have python3 in hashbang.

rebased onto 6ff95bf407198574741b83e69d059173f80cad97

rebased onto 2e500b01195efb56fbe2cac353d43117cfd1c82c

rebased onto c0bd9d795ad0dc5e84f353a0f1702403b1ed40c8

rebased onto 9431bb0f1485f58c4405d94175925f5d9b642aff

rebased onto 2d9643433c5577e0c88b0fec8eec46badcf09f95

rebased onto db65fba0aa496cf951beebe598d9544185c8b1ea

rebased onto 570277d80f6c5cf0198da10f84286c66a982a7b5

rebased onto af763a45395814c4caa88d0dc8777775c8c23af1

rebased onto 2b31d6aecc1d2da69c749d844cd634499ad3fb39

rebased onto 58d1c7d341bb9a787d027520308fc3d0bc6b3fd4

rebased onto 1d0b94e24fe0a7487f2ce7724297492b7137d981

rebased onto 6cd8511bc75206ce5afae2cf639721b12259b20d

rebased onto 2e0a32ec72f9d57c544f433a3c95bbf54b2d969b

rebased onto 758b69b4e2f937a4a297af1ec1d99642f39cd9f4

rebased onto e5638c0feec3c48d5ef0d8c3357df837f3f2609d

rebased onto 70b2331e7591a56931135920a95cefcb65d6577c

rebased onto 0ddd1afa9f8e4725af1b7c4b5e0cffd5e86ef462

rebased onto 52431593b9a0944041c0320d7641b93ec1c6d36a

rebased onto 4417d0d18a92ef130b44a5cf2f794f390b314843

rebased onto 277e7aa82a29fae0f088d4b120a90bbf832558bd

rebased onto 7f0364f3c3ecc250fb6105fd37aad2519f376982

rebased onto 7f0364f3c3ecc250fb6105fd37aad2519f376982

@tkopecek all fixed

rebased onto 68e082f5f30b0cf56dc31610f0f08ced69d7ce79

1 new commit added

  • fix koji-sweep-db

1 new commit added

  • Fix Makefile for RHEL7

rebased onto ea59c0ecdc3143edf133a32d1c31781f244c68c3

3 new commits added

  • Fix Makefile for RHEL7
  • fix koji-sweep-db
  • Move database classes and functions from kojihub.py to koji/db.py

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

Metadata Update from @jobrauer:
- Pull-request untagged with: testing-ready

Testing ready removed due to a merge conflict on our testing branch: https://pagure.io/koji/pull-request/3513

rebased onto 6d6260a4c5de5cbf82cee51808e4ec74cf01df2c

3 new commits added

  • Fix Makefile for RHEL7
  • fix koji-sweep-db
  • Move database classes and functions from kojihub.py to koji/db.py

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-ready

rebased onto 6e1ecace911e5b00f957a014cf63131f6e612a54

Metadata Update from @jobrauer:
- Pull-request tagged with: testing-done

Commit b536e543 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata