Package sqlline

Class SqlLineOpts

  • All Implemented Interfaces:
    org.jline.reader.Completer

    public class SqlLineOpts
    extends Object
    implements org.jline.reader.Completer
    Session options.
    • Constructor Detail

      • SqlLineOpts

        public SqlLineOpts​(SqlLine sqlLine)
    • Method Detail

      • optionCompleters

        public List<org.jline.reader.Completer> optionCompleters()
      • saveDir

        public static File saveDir()
        The save directory if HOME/.sqlline/ on UNIX, and HOME/sqlline/ on Windows.
        Returns:
        save directory
      • complete

        public void complete​(org.jline.reader.LineReader lineReader,
                             org.jline.reader.ParsedLine parsedLine,
                             List<org.jline.reader.Candidate> list)
        Specified by:
        complete in interface org.jline.reader.Completer
      • propertyNames

        public Set<String> propertyNames()
      • toProperties

        public Properties toProperties​(boolean toSave)
      • loadProperties

        public void loadProperties​(Properties props)
      • set

        public boolean set​(String key,
                           String value,
                           boolean quiet)
      • hasProperty

        public boolean hasProperty​(String name)
      • getFastConnect

        public boolean getFastConnect()
      • getAutoCommit

        public boolean getAutoCommit()
      • getVerbose

        public boolean getVerbose()
      • getShowElapsedTime

        public boolean getShowElapsedTime()
      • getShowWarnings

        public boolean getShowWarnings()
      • getShowNestedErrs

        public boolean getShowNestedErrs()
      • getNumberFormat

        public String getNumberFormat()
      • getEscapeOutput

        public boolean getEscapeOutput()
      • setNumberFormat

        public void setNumberFormat​(String numberFormat)
      • getDateFormat

        public String getDateFormat()
      • setDateFormat

        public void setDateFormat​(String dateFormat)
      • getTimeFormat

        public String getTimeFormat()
      • setTimeFormat

        public void setTimeFormat​(String timeFormat)
      • getTimestampFormat

        public String getTimestampFormat()
      • setTimestampFormat

        public void setTimestampFormat​(String timestampFormat)
      • getNullValue

        public String getNullValue()
      • getRowLimit

        public int getRowLimit()
      • getTimeout

        public int getTimeout()
      • getIsolation

        public String getIsolation()
      • setIsolation

        public void setIsolation​(String isolation)
      • getHistoryFile

        public String getHistoryFile()
      • setHistoryFile

        public void setHistoryFile​(String historyFile)
      • setColorScheme

        public void setColorScheme​(String colorScheme)
      • getColorScheme

        public String getColorScheme()
      • getColor

        public boolean getColor()
      • getCsvDelimiter

        public String getCsvDelimiter()
      • getCsvQuoteCharacter

        public char getCsvQuoteCharacter()
      • setMaxHistoryRows

        public void setMaxHistoryRows​(String maxHistoryRows)
      • setMaxHistoryFileRows

        public void setMaxHistoryFileRows​(String maxHistoryFileRows)
      • setCsvQuoteCharacter

        public void setCsvQuoteCharacter​(String csvQuoteCharacter)
      • getShowHeader

        public boolean getShowHeader()
      • getHeaderInterval

        public int getHeaderInterval()
      • getForce

        public boolean getForce()
      • getIncremental

        public boolean getIncremental()
      • getSilent

        public boolean getSilent()
      • getAutosave

        @Deprecated
        public boolean getAutosave()
        Deprecated.
        Returns:
        true if auto save is on, false otherwise
      • getAutoSave

        public boolean getAutoSave()
      • getOutputFormat

        public String getOutputFormat()
      • getPrompt

        public String getPrompt()
      • getRightPrompt

        public String getRightPrompt()
      • getTrimScripts

        public boolean getTrimScripts()
      • getMaxHeight

        public int getMaxHeight()
      • getMaxWidth

        public int getMaxWidth()
      • getMaxColumnWidth

        public int getMaxColumnWidth()
      • getUseLineContinuation

        public boolean getUseLineContinuation()
      • getMode

        public String getMode()
      • setMode

        public void setMode​(String mode)
      • getStrictJdbc

        public boolean getStrictJdbc()
      • getPropertiesFile

        public File getPropertiesFile()
      • setRun

        public void setRun​(String runFile)
      • getRun

        public String getRun()