Package ganymede.kernel.magic
Class SQL
- java.lang.Object
-
- ganymede.notebook.AbstractMagic
-
- ganymede.kernel.magic.SQL
-
- All Implemented Interfaces:
AnnotatedMagic
,Magic
@ServiceProviderFor(Magic.class) @Description("Execute code in SQL REPL") public class SQL extends AbstractMagic
- Author:
- Allen D. Ball
- See Also:
NotebookContext.sql
,DSLContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ganymede.notebook.Magic
Magic.Application, Magic.completeness
-
-
Constructor Summary
Constructors Constructor Description SQL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(String line0, String code, JsonNode metadata)
JShell
execution method.String
getUsage()
-
Methods inherited from class ganymede.notebook.AbstractMagic
configure, getUsage, isComplete, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ganymede.notebook.AnnotatedMagic
getDescription, getMagicNames
-
-
-
-
Constructor Detail
-
SQL
public SQL()
-
-
Method Detail
-
execute
public void execute(String line0, String code, JsonNode metadata) throws Exception
Description copied from interface:Magic
JShell
execution method.- Parameters:
line0
- The initial magic line.code
- The remainder of the cell.metadata
- The metadata from the Jupyterexecute_request
.- Throws:
Exception
-
-