Script execution
This commit is contained in:
@@ -21,11 +21,24 @@ props.put("fileTailParts", "Year,Month");
|
||||
conn = DriverManager.getConnection("jdbc:relique:csv:" + db, props);
|
||||
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
|
||||
#results = stmt.executeQuery("SELECT Command,Result,Year,Month FROM Test");
|
||||
results = stmt.executeQuery("SELECT Command,Result,Year,Month FROM .");
|
||||
results = stmt.executeQuery("SELECT Command,Result,Year,Month, Start FROM .");
|
||||
|
||||
#Command,Args,Source,Start,End,Background,Result,Return
|
||||
|
||||
if results.last():
|
||||
print("Command= " + results.getString("Command") + " Result= " + results.getString("Result"))
|
||||
if (results.first()):
|
||||
print("Command= " + results.getString("Command") + " Result= " + results.getString("Result"))
|
||||
conn.close()
|
||||
|
||||
results = stmt.executeQuery("SELECT Command,Result,Start FROM . WHERE Result = 'success'")
|
||||
while results.next():
|
||||
print("Command= " + results.getString("Command") + " Result= " + results.getString("Result"))
|
||||
|
||||
|
||||
results = stmt.executeQuery("SELECT COUNT(Command) FROM . WHERE Result = 'success'")
|
||||
while results.next():
|
||||
#x=results
|
||||
print results
|
||||
|
||||
|
||||
#conn.close()
|
||||
Reference in New Issue
Block a user