File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -416,19 +416,16 @@ function! s:dbui.populate_schema_info(db) abort
416
416
let a: db .filetype = get (scheme_info, ' filetype' , ' sql' )
417
417
endfunction
418
418
419
- " This function is used to skip resolving the url
420
- " added for ssh connections (https://github.com/pbogut/vim-dadbod-ssh)
421
- " Because resolving those url gets the underlying connection, which
422
- " we don't want to do.
419
+ " Resolve only urls for DBs that are files
423
420
function db_ui#resolve (url) abort
424
421
let parsed_url = db#url#parse (a: url )
425
- let ignored_resolve_schemes = [' ssh ' ]
422
+ let resolve_schemes = [' sqlite ' , ' jq ' , ' duckdb ' , ' osquery ' ]
426
423
427
- if index (ignored_resolve_schemes , get (parsed_url, ' scheme' , ' ' )) > -1
428
- return a: url
424
+ if index (resolve_schemes , get (parsed_url, ' scheme' , ' ' )) > -1
425
+ return db#resolve ( a: url)
429
426
endif
430
427
431
- return db#resolve ( a: url)
428
+ return a: url
432
429
endfunction
433
430
434
431
function ! db_ui#reset_state () abort
You can’t perform that action at this time.
0 commit comments