public class DBTool extends InteractiveTool
a toolset to show schema, dump data. show memory usage, and convert data when schema changed. you can script it
echo -e "[cmd2]\n[cmd2]\n..." | java ...
commands:
dbs [path], #default .
use [db]
tables
schema [table]
dump [table]
memory [orderBy] #name|table|cache|capacity, default name
convert [toDB] #default zdbcov
out [filename] [charset] #default System.out, UTF-8
help
exit / quit
use .memory .convert in jar with generated table._Meta_ inside.
out
Modifier and Type | Method and Description |
---|---|
protected void |
eval(java.lang.String[] words) |
static void |
main(java.lang.String[] args) |
help, interactive
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected void eval(java.lang.String[] words) throws java.lang.Exception
eval
in class InteractiveTool
java.lang.Exception