|
__init__(self,
completekey='tab',
stdin=None,
stdout=None,
silent=False,
argv=[])
Shell initialisation |
source code
|
|
|
|
|
|
|
|
|
|
|
onecmd(self,
line)
This method is subclassed just to be able to encapsulate it with a
try/except bloc |
source code
|
|
|
|
|
|
|
|
|
do_help(self,
arg)
Overload do_help to show help from the command parser if it exists:
if there is a parser_foo() method, assume this method returns a
PysqlOptionParser for the do_foo() method and show the help of the
parser, instead of standard help (do_foo() docstring or help_foo()) |
source code
|
|
|
|
|
|
|
complete_connect(self,
text,
line,
begidx,
endidx)
Completion of SID for connect method |
source code
|
|
|
complete_desc(self,
text,
line,
begidx,
endidx)
Completion for command desc |
source code
|
|
|
complete_edit(self,
text,
line,
begidx,
endidx)
Completion for command edit |
source code
|
|
|
complete_get(self,
text,
line,
begidx,
endidx)
Completion for command get |
source code
|
|
|
complete_set(self,
text,
line,
begidx,
endidx)
Completion for command set |
source code
|
|
|
complete_library(self,
text,
line,
begidx,
endidx)
Completion for library command |
source code
|
|
|
|
|
do_disconnect(self,
arg)
Disconnect from instance |
source code
|
|
|
do_showCompletion(self,
arg)
Shows completion list |
source code
|
|
|
do_history(self,
arg)
Display shell history |
source code
|
|
|
do_library(self,
arg)
Manage user sql request library |
source code
|
|
|
do_bg(self,
arg)
Manages background queries |
source code
|
|
|
do_commit(self,
arg)
Commits pending transaction |
source code
|
|
|
do_rollback(self,
arg)
Rolls back pending transaction |
source code
|
|
|
do_startup(self,
arg)
Starts database up (Oracle v10R2 or upper required) |
source code
|
|
|
do_shutdown(self,
arg)
Shuts database down (Oracle v10R2 or upper required) |
source code
|
|
|
|
|
do_compare(self,
arg)
Compares schema or object structure and data |
source code
|
|
|
|
|
do_describe(self,
arg)
Emulates the sqlplus desc function |
source code
|
|
|
|
|
do_addmrpt(self,
arg)
Generates ADDM report |
source code
|
|
|
|
|
|
|
|
|
do_sqltune(self,
arg)
Generates SQL tuning advice |
source code
|
|
|
|
|
do_durpt(self,
arg)
Generates disk usage report |
source code
|
|
|
do_assmrpt(self,
arg)
Generates ASSM report |
source code
|
|
|
|
|
do_datamodel(self,
arg)
Exports a datamodel as a picture |
source code
|
|
|
|
|
do_dependencies(self,
arg)
Exports object dependencies as a picture |
source code
|
|
|
|
|
do_diskusage(self,
arg)
Exports disk usage as a picture |
source code
|
|
|
|
|
do_edit(self,
arg)
Edits properties of an Orale object or last SQL statement |
source code
|
|
|
do_execute(self,
arg)
Emulates sqlplus execute |
source code
|
|
|
do_explain(self,
arg)
Explain SQL exec plan |
source code
|
|
|
|
|
do_session(self,
arg)
Display Oracle session |
source code
|
|
|
|
|
|
|
|
|
|
|
do_pkgtree(self,
arg)
Display PL/SQL package call tree |
source code
|
|
|
|
|
do_directory(self,
arg)
Display directories |
source code
|
|
|
|
|
|
|
do_package(self,
arg)
Display PL/SQL packages |
source code
|
|
|
do_procedure(self,
arg)
Display PL/SQL procedures |
source code
|
|
|
do_segment(self,
arg)
Display segments (tables, index) |
source code
|
|
|
|
|
|
|
|
|
|
|
do_tablespace(self,
arg)
Display tablespaces |
source code
|
|
|
do_user(self,
arg)
Display users (aka schema) |
source code
|
|
|
|
|
|
|
do_last(self,
arg)
Display last lines of query set |
source code
|
|
|
do_next(self,
arg)
Display next lines of query set |
source code
|
|
|
|
|
|
|
do_write(self,
arg)
Write configuration to disk |
source code
|
|
|
do_shell(self,
arg)
Execute a shell command or open a shell |
source code
|
|
|
|
|
|
|
do_lpwd(self,
arg)
Display current work directory |
source code
|
|
|
do_script(self,
arg)
Execute an external sql file, similar to sql*plus @ |
source code
|
|
|
|
|
do_csv(self,
arg)
Dumps sql request to file |
source code
|
|
|
do_time(self,
arg)
Time request execution time |
source code
|
|
|
|
|
do_exit(self,
arg)
Close current connection and exit pysql |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_help_for_search_method(self,
searchObject)
generic online help all object search method |
source code
|
|
|
__animateCursor(self)
Animate cursor to tell user something is really happening End of
animation and output flushing is done automatically in postcmd hook |
source code
|
|
|
|
|
|
|
__connect(self,
connectString,
mode="")
Calls the PysqlDb class to connect to Oracle |
source code
|
|
|
__disconnect(self)
Disconnects from Oracle and update prompt |
source code
|
|
|
__setPrompt(self,
blank=False,
multiline=False,
finishedQuery=False)
Sets the prompt according to the connexion state |
source code
|
|
|
__searchObjet(self,
objectType,
objectName)
Searches Oracle object |
source code
|
|
|
__displayCol(self,
listOfString)
Displays on column the list of strings |
source code
|
|
|
__displayTab(self,
array,
header=None)
Displays in tabular the array using correct width for each column |
source code
|
|
|
__checkConnection(self)
Raises an exception is there's no connection defined The test is
light (db object defined), no real connection test is done. |
source code
|
|
|
|
|
|
|
|
|
__toCsv(self,
result,
fileName,
header=True)
Writes query result to a file |
source code
|
|
|
__fetchNext(self,
nbLines=0)
Fetches next result of current cursor |
source code
|
|
|
__exit(self)
Closes current connection and exits pysql |
source code
|
|
|
__askForSnapshotId(self,
numDays=0,
text="")
Prompts user and asks him to choose a snapshot id |
source code
|
|
|
complete_conn(self,
text,
line,
begidx,
endidx)
Completion of SID for connect method |
source code
|
|
|
complete_lib(self,
text,
line,
begidx,
endidx)
Completion for library command |
source code
|
|
Inherited from cmd.Cmd :
cmdloop ,
columnize ,
complete ,
complete_help ,
get_names ,
parseline ,
print_topics
|