Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SQLCL support in Oracle adapter #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/db/adapter/oracle.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endfunction

function! db#adapter#oracle#interactive(url) abort
let url = db#url#parse(a:url)
return [get(g:, 'dbext_default_ORA_bin', 'sqlplus'), '-L',
return [get(g:, 'dbext_default_ORA_bin', 'sqlplus' ), '-L',
\ get(url, 'user', 'system') . '/' . get(url, 'password', 'oracle') .
\ '@' . s:conn(url)]
endfunction
Expand Down
4 changes: 3 additions & 1 deletion doc/dadbod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ Oracle ~
>
oracle://[<user>[:<password>]@][<host>][:<port>]/[<database>]
oracle:<user>/<password>@[//]<host>[:<port>]/<database>
<

Sqlplus is the default binary used to connect, to override and use sqlcl
let g:dbext_default_ORA_bin = 'sql'
*dadbod-osquery*
osquery ~
>
Expand Down