java.lang.Object
sqlline.Application
com.apple.foundationdb.relational.cli.sqlline.Customize

@API(EXPERIMENTAL) public class Customize extends sqlline.Application
In here we add Relational customizations and extensions to SQLline. See Application.java on how this works. The main thing we add is output of Relational STRUCT and ARRAY missing from basic sqlline.
  • Field Summary

    Fields inherited from class sqlline.Application

    DEFAULT_APP_INFO_MESSAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<sqlline.CommandHandler>
    getCommandHandlers(sqlline.SqlLine sqlLine)
     
     
    sqlline.SqlLineOpts
    getOpts(sqlline.SqlLine sqlLine)
    Override to fix a bug in sqlline customization; an oversight prevents us being able to set the CONNECT_INTERACTION_MODE default so we do the below ugly intercept instead.
    Map<String,sqlline.OutputFormat>
    getOutputFormats(sqlline.SqlLine sqlLine)
     

    Methods inherited from class sqlline.Application

    allowedDrivers, getAvailableScriptEngineNames, getConnectInteractiveModes, getConnectionUrlExamples, getDefaultInteractiveMode, getName2HighlightStyle, getName2TableOutputFormatStyle, getPromptHandler, getVersion, initDrivers

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Customize

      public Customize()
  • Method Details

    • getOpts

      public sqlline.SqlLineOpts getOpts(sqlline.SqlLine sqlLine)
      Override to fix a bug in sqlline customization; an oversight prevents us being able to set the CONNECT_INTERACTION_MODE default so we do the below ugly intercept instead. Relational does not support login yet so do the below to stop user being challenged for a username/password on each connect.
      Overrides:
      getOpts in class sqlline.Application
      Returns:
      Our options instance.
    • getInfoMessage

      public String getInfoMessage()
      Overrides:
      getInfoMessage in class sqlline.Application
    • getOutputFormats

      public Map<String,sqlline.OutputFormat> getOutputFormats(sqlline.SqlLine sqlLine)
      Overrides:
      getOutputFormats in class sqlline.Application
    • getCommandHandlers

      public Collection<sqlline.CommandHandler> getCommandHandlers(sqlline.SqlLine sqlLine)
      Overrides:
      getCommandHandlers in class sqlline.Application