Package SQLite
Class Shell
java.lang.Object
SQLite.Shell
- All Implemented Interfaces:
Callback
public class Shell extends Object implements Callback
SQLite command line shell. This is a partial reimplementaion
of sqlite/src/shell.c and can be invoked by:
-
Constructor Summary
Constructors Constructor Description Shell(PrintStream ps, PrintStream errs)Shell(PrintWriter pw, PrintWriter err) -
Method Summary
Modifier and Type Method Description protected Objectclone()Creates and returns a copy of thisObject.voidcolumns(String[] args)Reports column names of the query result.static voidmain(String[] args)booleannewrow(String[] args)Reports row data of the query result.static Stringsql_quote(String str)static Stringsql_quote_dbl(String str)voidtypes(String[] args)Reports type names of the columns of the query result.
-
Constructor Details
-
Shell
-
Shell
-
-
Method Details
-
clone
Description copied from class:ObjectCreates and returns a copy of thisObject. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should callsuper.clone()to create the new instance and then create deep copies of the nested, mutable objects. -
sql_quote_dbl
-
sql_quote
-
columns
Description copied from interface:CallbackReports column names of the query result. This method is invoked first (and once) when the SQLite engine returns the result set. -
types
Description copied from interface:CallbackReports type names of the columns of the query result. This is available from SQLite 2.6.0 on and needs the PRAGMA show_datatypes to be turned on. -
newrow
Description copied from interface:CallbackReports row data of the query result. This method is invoked for each row of the result set. If true is returned the running SQLite query is aborted. -
main
-