ServerOperation.prepareCreateDatabase

gda.server_operation.ServerOperation prepareCreateDatabase(string provider, string dbName = null)

Creates a new #GdaServerOperation object which contains the specifications required to create a database. Once these specifications provided, use [gda.server_operation.ServerOperation.performCreateDatabase] to perform the database creation.

If db_name is left null, then the name of the database to create will have to be set in the returned #GdaServerOperation using [gda.server_operation.ServerOperation.setValueAt].

Parameters

providerthe database provider to use
dbNamethe name of the database to create, or null

Returns

new #GdaServerOperation object, or null if the provider does not support database

creation

Throws

[ServerOperationException]