Search in sources :

Example 1 with DataSourcesMagicCommand

use of com.twosigma.beakerx.sql.magic.command.DataSourcesMagicCommand in project beakerx by twosigma.

the class SQL method registerCustomMagicCommands.

private void registerCustomMagicCommands() {
    registerMagicCommandType(new MagicCommandType(DATASOURCES, "<jdbc:[dbEngine]:[subsubprotocol:][databaseName]>", new DataSourcesMagicCommand(this)));
    registerMagicCommandType(new MagicCommandType(DEFAULT_DATASOURCE, "<sourceName=jdbc:[dbEngine]:[subsubprotocol:][databaseName]>", new DefaultDataSourcesMagicCommand(this)));
}
Also used : DefaultDataSourcesMagicCommand(com.twosigma.beakerx.sql.magic.command.DefaultDataSourcesMagicCommand) DataSourcesMagicCommand(com.twosigma.beakerx.sql.magic.command.DataSourcesMagicCommand) DefaultDataSourcesMagicCommand(com.twosigma.beakerx.sql.magic.command.DefaultDataSourcesMagicCommand) MagicCommandType(com.twosigma.beakerx.kernel.magic.command.MagicCommandType)

Aggregations

MagicCommandType (com.twosigma.beakerx.kernel.magic.command.MagicCommandType)1 DataSourcesMagicCommand (com.twosigma.beakerx.sql.magic.command.DataSourcesMagicCommand)1 DefaultDataSourcesMagicCommand (com.twosigma.beakerx.sql.magic.command.DefaultDataSourcesMagicCommand)1