SQLSyntax - Feature to complete the sqlcommands

2 views
Skip to first unread message

Razec

unread,
Mar 8, 2009, 2:46:43 PM3/8/09
to DBJMIN
Hi folks,

I'm writing and testing a simple feature for give suggests hints to
complete the sqlcommands. The vocabulary contains a word that starts
with what has been typed.

Today I did commit for Trunk. Check

Implementations:

SwingUtils.java

added send sql commands for analysis of SQLSyntax
sqltext.getDocument().addDocumentListener(new SQLSyntax(sqltext));

added in sqltext a event for closes the open parenthesis.


SQLSyntax.java

This class is used for complete the sql command typed in sqltext
(JTextArea)

Future Implementations:

Add dictionary for sql command.

HowTo

*Connect to the Database
*press the button [ SQL ] (Will open the follow message)
----------------------------------------------------
Write here your query. (Delete this message)
-----------------------------------------------------

Write your sql command:
-----------------------------------------------------------
( <- automatically closes the open parenthesis
se <-(Just Moment auto-complete your command (select)
------------------------------------------------------------

*I added some sql commands for auto-complete

BUGs
*Sometimes don't auto-complete the sql commands.


I will be waiting for your suggestion

Have nice week!!

---
Razec

Damico

unread,
Apr 24, 2009, 11:21:24 AM4/24/09
to DBJMIN
Hi Miro,

As a first action to FISL 10 version :) can you review, test (junit)
with Razec this SQLSyntax impl. ?
Razec? Can you write on WIKI a SQLSytntax test case?

[]s

Damico

Mir0

unread,
Apr 24, 2009, 12:32:28 PM4/24/09
to dbj...@googlegroups.com
Hi folks,

Sure!

Razec, I'll available in GTalk every day.


TX

Miro

Razec

unread,
Apr 25, 2009, 8:32:55 AM4/25/09
to dbj...@googlegroups.com
Hi Miro..

Ok, I'll be in touch..

See you

Thx

---
Razec

Damico

unread,
Apr 26, 2009, 10:58:46 AM4/26/09
to DBJMIN
Hi Mir0,

Please review Razec's work/code, test it and give to us your opinion.
If you say that is everything ok, I will promote to our new version.
If not, please coordinate the adjusts with Razec.

[]s

Damico


On Mar 8, 3:46 pm, Razec <mra...@gmail.com> wrote:

Mir0

unread,
Apr 28, 2009, 10:55:47 AM4/28/09
to dbj...@googlegroups.com
Folks,


Still checking.. I will give a feedback ASAP..


[ ]'s


Miro

Razec

unread,
Apr 28, 2009, 11:14:51 AM4/28/09
to dbj...@googlegroups.com
Hi Mir0, How are you?

Mir0,

I think that auto-complete could be very faster but is very slow..
I tried add sqlDictionary.txt with words, but continued slow and same bug.

I found one bug:
-Auto-complete sometimes works and sometimes doesn't.

Class: SQLSyntax:
 http://code.google.com/p/dbjmin/source/browse/trunk/DB2-JMIN-SWING/src/db2jmin/pojo/util/SQLSyntax.java

Do you have any idea?

Cheers
--
Razec
Reply all
Reply to author
Forward
0 new messages