Skip to content

Commit 486e04a

Browse files
bagyi0vim-scripts
authored andcommitted
Version 2.30
New Features ------------ - The result window has a local buffer mapping 'R', which will 'refresh' the window. This means it will re-run the previous statement which is useful if you are repeatedly checking something in the database. - SQL Anywhere (ASA) no longer relies on the jcatalogue tables to be installed in the database. System views are used instead. - Support for MySQL 5.0 has been added, which includes stored procedures and views (as much as the beta allowed). - For Postgress SQL you can now optionally enter an owner name to filter by when showing list of objects (tables, procedures, views). Bug Fixes ------------ - The alternate-file is no longer changed the first time the result buffer is opened. - Using DB2 with db2cmd incorrectly specified the command terminator with td, instead of -t. - On win32 platforms, if the bin_path has been specified for DB2, then add this to the system path since db2cmd relies on other batch files to operate correctly. - The connection string is displayed by both the Result buffer (first line) and the titlestring to the buffer (if enabled). This was not correctly appending the user used to connect to the database. - When parsing Vim scripts we did not correctly remove a leading line continuation slash from the from of a query.
1 parent 707e94f commit 486e04a

File tree

2 files changed

+340
-195
lines changed

2 files changed

+340
-195
lines changed

doc/dbext.txt

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*dbext.txt* For Vim version 6.0. Last change: Sat Feb 19 2005 5:43:26 PM
1+
*dbext.txt* For Vim version 6.0. Last change: Fri Sep 09 2005 2:11:11 PM
22

33

44
VIM REFERENCE MANUAL
@@ -7,14 +7,14 @@
77
David Fishburn <[email protected]>
88

99
Database extension plugin (dbext.vim) manual
10-
dbext.vim version 2.20
10+
dbext.vim version 2.30
1111

1212
For instructions on installing this file, type
1313
:help add-local-help
1414
|add-local-help| inside Vim.
1515

1616
Homepage: http://vim.sourceforge.net/script.php?script_id=356
17-
SourceForge: $Revision: 1.20 $
17+
SourceForge: $Revision: 1.21 $
1818

1919
*dbext* *dbext.vim* *db_ext* *db_ext.vim* *database-extension* *pgsql* *mysql*
2020
*asa* *ase* *ingres* *interbase* *sqlite* *sqlsrv* *ora* *db2*
@@ -49,6 +49,36 @@ SourceForge: $Revision: 1.20 $
4949
------------------------------------------------------------------------------
5050
What's New *dbext-new*
5151

52+
Version 2.30
53+
54+
New Features
55+
------------
56+
- The result window has a local buffer mapping 'R', which will 'refresh'
57+
the window. This means it will re-run the previous statement which is
58+
useful if you are repeatedly checking something in the database.
59+
- SQL Anywhere (ASA) no longer relies on the jcatalogue tables to be
60+
installed in the database. System views are used instead.
61+
- Support for MySQL 5.0 has been added, which includes stored procedures
62+
and views (as much as the beta allowed).
63+
- For Postgress SQL you can now optionally enter an owner name to filter by
64+
when showing list of objects (tables, procedures, views).
65+
66+
Bug Fixes
67+
------------
68+
- The |alternate-file| is no longer changed the first time the result buffer
69+
is opened.
70+
- Using DB2 with db2cmd incorrectly specified the command terminator with
71+
td, instead of -t.
72+
- On win32 platforms, if the bin_path has been specified for DB2, then
73+
add this to the system path since db2cmd relies on other batch files to
74+
operate correctly.
75+
- The connection string is displayed by both the Result buffer (first line)
76+
and the titlestring to the buffer (if enabled). This was not correctly
77+
appending the user used to connect to the database.
78+
- When parsing Vim scripts we did not correctly remove a leading line
79+
continuation slash from the from of a query.
80+
81+
5282
Version 2.20
5383

5484
New Features
@@ -230,7 +260,10 @@ Version 2.00
230260
let g:dbext_default_buffer_lines = 5 (default)
231261
<If you want each buffer to have its OWN Result buffer, you can define: >
232262
let g:dbext_default_use_sep_result_buffer = 1 (default=0)
233-
<
263+
<There is a local buffer mapping created to re-run the statement which
264+
populated the result window. Pressing 'R' calls the DBRefreshResult
265+
command.
266+
234267
3.2 Script Variables *dbext-configure-variables*
235268

236269
Global variables: >
@@ -534,7 +567,7 @@ Version 2.00
534567

535568
" Execute the current line
536569
" sql - execute - line
537-
nnoremap <unique> <Leader>sea :.,.DBExecRangeSQL
570+
nnoremap <unique> <Leader>sel :.,.DBExecRangeSQL
538571

539572
" select * from the table under the cursor
540573
" sql - table
@@ -636,6 +669,8 @@ Version 2.00
636669
DBListProcedure - Lists all procedures (optional wildcard)
637670
DBListView - Lists all views (optional wildcard)
638671
DBListColumn - Comma separated list of columns for the given table
672+
DBRefreshResult - Re-runs the statement currently displayed in the
673+
result window
639674

640675
------------------------------------------------------------------------------
641676
5. Adding new database types *dbext-newdb*
@@ -1209,6 +1244,10 @@ To specify the type of database you connect to most often, you can place the
12091244

12101245
Let assume the command did successfully execute against your database.
12111246

1247+
TIP
1248+
---
1249+
While your cursor is in the result buffer, you can press 'R', and it will
1250+
re-run the command that created the current results.
12121251

12131252

12141253
Executing commands

0 commit comments

Comments
 (0)