public class Quidem extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Quidem.ConnectionFactory
Creates a connection for a given name.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static com.google.common.base.Function<String,Object> |
EMPTY_ENV
The empty environment.
|
| Constructor and Description |
|---|
Quidem(BufferedReader reader,
Writer writer)
Creates a Quidem interpreter with an empty environment.
|
Quidem(BufferedReader reader,
Writer writer,
com.google.common.base.Function<String,Object> env)
Creates a Quidem interpreter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Quidem.ConnectionFactory connectionFactory) |
boolean |
isProbablyDeterministic(String sql)
Returns whether a SQL query is likely to produce results always in the
same order.
|
static void |
main(String[] args) |
static void |
main2(List<String> args,
PrintWriter out) |
void |
setStackLimit(int stackLimit)
Sets the maximum number of characters of an error stack to be printed.
|
public Quidem(BufferedReader reader, Writer writer)
public Quidem(BufferedReader reader, Writer writer, com.google.common.base.Function<String,Object> env)
public static void main(String[] args)
public static void main2(List<String> args, PrintWriter out) throws Exception
Exceptionpublic void execute(Quidem.ConnectionFactory connectionFactory)
public void setStackLimit(int stackLimit)
If negative, does not limit the stack size.
The default is DEFAULT_MAX_STACK_LENGTH.
Useful because it prevents diff from running out of memory if
the error stack is very large. It is preferable to produce a result where
you can see the first N characters of each stack trace than to produce
no result at all.
stackLimit - Maximum number of characters to print of each stack
tracepublic boolean isProbablyDeterministic(String sql)
If Quidem believes that the order is deterministic, it does not sort the rows before comparing them.
The result is just a guess. Quidem does not understand the finer points of SQL semantics.
sql - SQL queryCopyright © 2014–2015 Julian Hyde. All rights reserved.