ServerOperation.prepareCreateDatabase

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.

class ServerOperation
static
prepareCreateDatabase
(
string provider
,
string dbName = null
)

Parameters

provider string

the database provider to use

dbName string

the name of the database to create, or null

Return Value

Type: gda.server_operation.ServerOperation

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

Throws