Open addshore opened 10 years ago
Can't you just copy includes/db/Database.php and /includes/db/DatabaseMysql.php from MediaWiki core? You would need to just copy the wfGetDB function from GlobalFunctions.php I think.
Yep, should work with little modification.
Note: The reason for this is it would be very useful for bots that run in locations with replicated databases such as labs (or bots that run on non wikimedia wikis)
Create a wrapper that extends the current myswl class This will be used for interacting directly with the mediawiki db and should have many pre defined queries!!!! :-)