SqlServer.Databases Interface

public interface Databases

Entry point to databases from the SQL Server.

Method Summary

Modifier and Type Method and Description
SqlDatabase.DefinitionStages.Blank define(String databaseName)

Creates a new database in SQL Server.

void delete(String databaseName)

Delete specified database in the server.

Completable deleteAsync(String databaseName)

Delete specified database in the server.

SqlDatabase get(String databaseName)

Gets a particular sql database.

List<SqlDatabase> list()

Returns all the databases for the server.

Method Details

define

public SqlDatabase.DefinitionStages.Blank define(String databaseName)

Creates a new database in SQL Server.

Parameters:

databaseName - name of the database to be created

Returns:

Returns a stage to specify arguments of the database

delete

public void delete(String databaseName)

Delete specified database in the server.

Parameters:

databaseName - name of the database to delete

deleteAsync

public Completable deleteAsync(String databaseName)

Delete specified database in the server.

Parameters:

databaseName - name of the database to delete

Returns:

observable for the delete operation

get

public SqlDatabase get(String databaseName)

Gets a particular sql database.

Parameters:

databaseName - name of the sql database to get

Returns:

Returns the database with in the SQL Server

list

public List list()

Returns all the databases for the server.

Returns:

list of databases for the server.

Applies to