projects
/
squelch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "Describe" command, with support for describing both (a) specific table(s) and...
[squelch.git]
/
src
/
main
/
java
/
net
/
jaekl
/
squelch
/
stmt
/
Stmt.java
diff --git
a/src/main/java/net/jaekl/squelch/stmt/Stmt.java
b/src/main/java/net/jaekl/squelch/stmt/Stmt.java
index fc090d4e96f458ef114673744f15129c207d27b2..893cfddfbea63b4687cc558bcbcd99c505a46277 100644
(file)
--- a/
src/main/java/net/jaekl/squelch/stmt/Stmt.java
+++ b/
src/main/java/net/jaekl/squelch/stmt/Stmt.java
@@
-5,6
+5,8
@@
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Connection;
import java.sql.SQLException;
+import net.jaekl.squelch.db.DbDriver;
+
/**
* Abstract base class for all statements (e.g., Insert, Create, Delete, Describe)
*/
/**
* Abstract base class for all statements (e.g., Insert, Create, Delete, Describe)
*/
@@
-14,5
+16,5
@@
public abstract class Stmt {
abstract public boolean handles(String line);
// Execute line as a statement of this type
abstract public boolean handles(String line);
// Execute line as a statement of this type
- abstract public int exec(Connection conn, PrintWriter pw, String line) throws IOException, SQLException;
+ abstract public int exec(
DbDriver driver,
Connection conn, PrintWriter pw, String line) throws IOException, SQLException;
}
}