empire-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Kirsch <Harald.Kir...@raytion.com>
Subject Re: dropping a database
Date Thu, 15 Aug 2013 13:17:35 GMT
Ok, I thought I found it:

getDriver().getDDLScript(DBCmdType.DROP, myDbObject, script)

but this generates


The 'USER' is hard coded, as it seems and my hunch is it should rather 
be DATABASE. Why should I drop a USER when providing a DBDatabase object?


On 15.08.2013 14:56, Harald Kirsch wrote:
> Hi all,
> in DBDDLGenerator I find dropDatabase(), but it is protected. Similarly
> it is still protected in the specific implementations like
> MySQLDDLGenerator.
> Of course I could just derive from the driver and call the protected
> method, but this seems to be a bit odd. What would be the correct way to
> drop a database with empireDB?
> Regards,
> Harald.

Harald Kirsch
Raytion GmbH
Kaiser-Friedrich-Ring 74
40547 Duesseldorf
Fon +49-211-550266-0
Fax +49-211-550266-19

View raw message