SQLComplete is a SQL code completion system using the omnifunc framework
Vim script
Switch branches/tags
Latest commit dfdbba6 Jun 2, 2013 @dfishburn dfishburn committed with Version 15.0
New Features
-------------------
Changed the SQL precached syntax items, omni_sql_precache_syntax_groups, to use regular expressions to pick up extended syntax group names.  This requires an updated SyntaxComplete plugin version 13.0 (uploaded separately).

If the required versions have not been installed, previous behaviour will not be impacted.

Bug Fixes
--------------
- Added check for cpoptions (cpo).
Permalink
Failed to load latest commit information.
plugin Version 15.0 Jun 14, 2013
README Version 15.0 Jun 14, 2013

README

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1572

SQLComplete.vim is a plugin which uses the new Vim7 OMNI completion features (intellisense code completion).

SQLComplete.vim version  4.0 is included in the Vim 7.0 release.
SQLComplete.vim version  5.0 is included in the Vim 7.1 release.
SQLComplete.vim version  6.0 is included in the Vim 7.2 release.
SQLComplete.vim version  9.0 is included in the Vim 7.3 release.
SQLComplete.vim version 10.0 is included in the Vim 7.3 release.
SQLComplete.vim version 11.0 is included in the Vim 7.3 release.
SQLComplete.vim version 12.0 is included in the Vim 7.3 release.
SQLComplete.vim version 13.0 is included in the Vim 7.3 release.
SQLComplete.vim version 14.0 is included in the Vim 7.3 release.
SQLComplete.vim version 15.0 is included in the Vim 7.3 release.

What does it do:
-----------------------
Completion for the SQL language includes statements, functions, keywords, operators and database options which it draws from the current SQL syntax file in use.  Vim ships with 9 different SQL syntax files (Oracle, Informix, MySQL, SQL Anywhere, ...).  You can choose different SQL dialects using the command  (see :h sql-dialects):
:SQLSetType sqlanywhere
:SQLSetType <Tab> will cycle through the installed dialects.

It will also dynamically complete tables, procedures, views and column lists with data pulled directly from a database.  It does this in conjunction with the dbext.vim "vimscript #356".  For detailed instructions and a tutorial see :h omni-sql-completion.

Existing instructions can be found within Vim7 using 
:h sql.txt
:h sql-completion

This plugin is new to Vim7.  Improvements to the script will be uploaded here, and supplied to Bram for inclusion into future versions of Vim7.