public class Quidem extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
Quidem.Config |
The information needed to start Quidem.
|
static class |
Quidem.ConfigBuilder |
Builds a
Quidem.Config. |
static interface |
Quidem.ConnectionFactory |
Creates a connection for a given name.
|
static interface |
Quidem.PropertyHandler |
Called whenever a property's value is changed.
|
static class |
Quidem.SqlCommand |
Command that executes a SQL statement.
|
| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
DEBUG |
|
static CommandHandler |
EMPTY_COMMAND_HANDLER |
A command handler that defines no commands.
|
static Quidem.ConnectionFactory |
EMPTY_CONNECTION_FACTORY |
The empty environment.
|
static java.util.function.Function<String,Object> |
EMPTY_ENV |
The empty environment.
|
static Quidem.PropertyHandler |
EMPTY_PROPERTY_HANDLER |
A property handler that does nothing.
|
| Constructor | Description |
|---|---|
Quidem(Reader reader,
Writer writer) |
Creates a Quidem interpreter with an empty environment and empty
connection factory.
|
Quidem(Reader reader,
Writer writer,
java.util.function.Function<String,Object> env,
Quidem.ConnectionFactory connectionFactory) |
Deprecated.
Use
Quidem(Config) and
Quidem.ConfigBuilder |
Quidem(Quidem.Config config) |
Creates a Quidem interpreter.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Quidem.ConfigBuilder |
configBuilder() |
Creates a
Quidem.ConfigBuilder with the default settings. |
protected void |
echo(Iterable<String> lines) |
|
void |
execute() |
Executes the commands from the input, writing to the output,
then closing both input and output.
|
boolean |
isProbablyDeterministic(String sql) |
Returns whether a SQL query is likely to produce results always in the
same order.
|
static void |
main(String[] args) |
Entry point from the operating system command line.
|
void |
setStackLimit(int stackLimit) |
Deprecated.
|
Quidem |
withConnectionFactory(Quidem.ConnectionFactory connectionFactory) |
Deprecated.
|
Quidem |
withPropertyHandler(Quidem.PropertyHandler propertyHandler) |
Deprecated.
|
public static final boolean DEBUG
public static final java.util.function.Function<String,Object> EMPTY_ENV
public static final Quidem.ConnectionFactory EMPTY_CONNECTION_FACTORY
public static final CommandHandler EMPTY_COMMAND_HANDLER
public static final Quidem.PropertyHandler EMPTY_PROPERTY_HANDLER
public Quidem(Reader reader, Writer writer)
@Deprecated public Quidem(Reader reader, Writer writer, java.util.function.Function<String,Object> env, Quidem.ConnectionFactory connectionFactory)
Quidem(Config) and
Quidem.ConfigBuilderpublic Quidem(Quidem.Config config)
public static Quidem.ConfigBuilder configBuilder()
Quidem.ConfigBuilder with the default settings.@Deprecated public Quidem withConnectionFactory(Quidem.ConnectionFactory connectionFactory)
Quidem.ConfigBuilder.withConnectionFactory(ConnectionFactory)@Deprecated public Quidem withPropertyHandler(Quidem.PropertyHandler propertyHandler)
Quidem.ConfigBuilder.withPropertyHandler(PropertyHandler)public static void main(String[] args)
Calls System.exit(int) with the following status codes:
args - Command-line argumentspublic void execute()
@Deprecated public void setStackLimit(int stackLimit)
Quidem.ConfigBuilder.withStackLimit(int).public 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–2018 Julian Hyde. All rights reserved.