提交 da08225b 编写于 作者: C Cosmin Popescu

Version 3.2.1

上级 77aff8e3
"============================================================================"
"
" Vim SQL Workbench/J Implementation
"
......@@ -15,7 +14,28 @@
" only dependency is SQL Workbench/J. Also includes powefull intellisense
" autocomplete based on the current selected database
"
"============================================================================"
""
" @section Introduction, intro
" This is an implementation of SQL Workbench/J in VIM. It works with any DBMS
" supported by `SQL Workbench/J` (PostgreSQL, Oracle, SQLite, MySQL, SQL
" Server etc.). See the complete list at
" http://www.sql-workbench.net/databases.html.
"
" Features:
"
" database explorer (e.g.: table lists, procedures list, views list, triggers
" list)
" extensible (you can have your own objects list)
" SQL buffer with performant autocomplete
" export any sql statement as `text`, `sqlinsert`, `sqlupdate`,
" `sqldeleteinsert`, `xml`, `ods`, `html`, `json`
" search in object source
" search in table or views data
" asynchronous (you can execute any command asynchronous)
" fully customizable
"
"
if !exists('g:Sw_unique_id')
let g:Sw_unique_id = 1
......
......@@ -342,7 +342,7 @@ function! sw#autocomplete#perform(findstart, base)
" Otherwise, extract the current sql
let sql = sw#autocomplete#extract_current_sql()
" Check its type
call sw#session#set_buffer_variable('autocomplete_type', s:get_sql_type(sql))
call sw#session#set_buffer_variable('autocomplete_type', s:get_sql_type(s:eliminate_sql_comments(sql)))
" Desc type, easy peasy
if (b:autocomplete_type == 'desc')
return sw#autocomplete#all_objects(a:base)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册