lets:pattern_wait_input='\v^([a-zA-Z_][a-zA-Z0-9_]*( \[[^\]]+\])?: |([^\>]+\> )?([^\>]+\> )*Username|([^\>]+\> )*Password: |([^\>]+\>[ ]+)?Do you want to run the command UPDATE\? \(Yes\/No\/All\)[ ]+)$'
lets:params_history=[]
lets:pattern_new_connection='\v^Connection to "([^"]+)" successful$'
let channel = jobstart(cmd,{'on_stdout':function('sw#server#nvim_handle_message'),'on_stderr':function('sw#server#nvim_handle_message'),'on_exit':function('sw#server#nvim_handle_message')})
callsw#display_error("The channel is not open. This means that SQL Workbench/J instance for this answer does not responsd anymore. Please do again SWSqlBufferConnect")
unlet b:sw_channel
return''
if!s:nvim
ifch_status(channel)!='open'
callsw#display_error("The channel is not open. This means that SQL Workbench/J instance for this answer does not responsd anymore. Please do again SWSqlBufferConnect")
let sw_sql_source_triggers ={'title':'SQL Source','shortcut':'S','command':'WbGrepSource -searchValues="%object%" -objects=%object% -types=* -useRegex=true -schemas=*;','skip_columns':[0,1],'hide_header':1,'filetype':'sql'}
let procedures ={'title':'Procedures','shortcut':'P','command':'WbListProcs;','panels':[sw_sql_source_proc]}
let triggers ={'title':'Triggers','shortcut':'T','command':'WbListTriggers;','panels':[sw_sql_source_triggers]}
let schemas ={'title':'Show schemas','shortcut':'M','command':'wblistschemas;','panels':[{'title':'Select schema','shortcut':'H','command':"set search_path to %object%;"},{'title':'Select *','shortcut':'A','command':"set search_path to '*.*'"}]}
...
...
@@ -33,4 +34,7 @@ let oracle_dblinks = {'title': 'DB Links', 'shortcut': 'L', 'command': 'select d
let oracle_jobs ={'title':'User Jobs','shortcut':'J','command':'select job_name, job_creator, start_date, repeat_interval from user_scheduler_jobs','panels':[{'title':'Job source','shortcut':'S','command':"select job_action from user_scheduler_jobs where job_name = '%object%'",'hide_header':1,'filetype':'sql'}]}
let oracle_packages ={'title':'Packages','shortcut':'K','command':"select OBJECT_NAME, OBJECT_TYPE, STATUS from user_objects where object_type in ('PACKAGE');",'panels':[{'title':'SQL Source','shortcut':'S','command':"wbprocsource %object%",'filetype':'sql'},{'title':'Compile','shortcut':'E','command':'alter package %object% compile package'},{'title':'Status','shortcut':'v','command':"select object_name, OBJECT_TYPE, STATUS from user_objects where object_name = '%object%'"}]}
let oracle_schemas ={'title':'Show schemas','shortcut':'M','command':'wblistschemas;','panels':[{'title':'Select schema','shortcut':'H','command':"alter session set current_schema = %object%;"}]}