Share code for caching  affected rows

Signed-off-by: Michal Čihař <michal@cihar.com>
Share code for getting mysql link object

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix typo in method name

Signed-off-by: Michal Čihař <michal@cihar.com>
Let getLink detect when userlink is null

Signed-off-by: Michal Čihař <michal@cihar.com>
Check return value

Signed-off-by: Michal Čihař <michal@cihar.com>
Send coverage report from Travis to Scrutinizer

Signed-off-by: Michal Čihař <michal@cihar.com>
We no longer need to mock the dbi object

Signed-off-by: Michal Čihař <michal@cihar.com>
Move coverage upload to after_script

Signed-off-by: Michal Čihař <michal@cihar.com>
Share code in DBI->fetchResult

Signed-off-by: Michal Čihař <michal@cihar.com>
Move getting link to the wrapper class so that the drivers always get right link parameter

Signed-off-by: Michal Čihař <michal@cihar.com>
Adjust test to new API

Also mark as incomplete tests which really did not test anything.

Signed-off-by: Michal Čihař <michal@cihar.com>