dbTalk Databases Forums  

Neat fix to isql replacement tool "is"

comp.databases.sybase comp.databases.sybase


Discuss Neat fix to isql replacement tool "is" in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Gagné
 
Posts: n/a

Default Neat fix to isql replacement tool "is" - 02-25-2004 , 10:44 PM






I've always wanted to define variables on the fly from user input, or
output a prompt and get the user's input. Now you can use

:define something=<<

which will define the variable "$something" from the 255 characters read
from whatever the current input descriptor is. Very cool.

For more information visit <http://gagne.homedns.org/~tgagne/is/>

--
..tom
remove email address' dashes for replies
opensource middleware at <http://isectd.sourceforge.net>
http://gagne.homedns.org


Reply With Quote
  #2  
Old   
Ed Avis
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-26-2004 , 03:38 PM






How does your 'is' program compare with 'sqsh'?

--
Ed Avis <ed (AT) membled (DOT) com>


Reply With Quote
  #3  
Old   
Thomas Gagné
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-26-2004 , 10:05 PM



That's a great question, and I wish I could give you a decent answer.

Mine originated in '89 or '90. Certainly it was finished by '91. I've
had little need for another. Perhaps I'll take a look at sqsh...

Ed Avis wrote:

Quote:
How does your 'is' program compare with 'sqsh'?



--
..tom
remove email address' dashes for replies
opensource middleware at <http://isectd.sourceforge.net>
http://gagne.homedns.org




Reply With Quote
  #4  
Old   
Thomas Gagné
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-26-2004 , 10:10 PM



Hmm. A quick review of sqsh and all I can see is a) I've done work to
it in the last 2.5 years ;-) and b) is provides a customizable prompt
that I use to display server and databasename. After than, sqsh is
pretty much more feature-rich.

Ah! I also notice sqsh was rewritten with ctlib, and I haven't bothered
yet. is still uses dblib. I didn't see much compelling in ctlib.

Ed Avis wrote:

Quote:
How does your 'is' program compare with 'sqsh'?



--
..tom
remove email address' dashes for replies
opensource middleware at <http://isectd.sourceforge.net>
http://gagne.homedns.org




Reply With Quote
  #5  
Old   
Pablo Sanchez
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-27-2004 , 05:21 AM



Thomas Gagné <tgagne (AT) wide-open-west (DOT) com> wrote in
news:403EC32F.7030601 (AT) wide-open-west (DOT) com:

Quote:
Ah! I also notice sqsh was rewritten with ctlib,
How about you take over sqsh and put in the features of 'is'?

I like sqsh's use of GNU readline.
--
Pablo Sanchez - Blueoak Database Engineering, Inc
http://www.blueoakdb.com


Reply With Quote
  #6  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-27-2004 , 09:20 AM



On Thu, 26 Feb 2004 23:05:00 -0500, Thomas Gagné wrote:

Quote:
That's a great question, and I wish I could give you a decent answer.

Mine originated in '89 or '90. Certainly it was finished by '91. I've
had little need for another. Perhaps I'll take a look at sqsh...
Which means that you use dblib, right?

Easier to code to, but unfortunately won't support some of the newer
datatypes (wide varchar, in particular).

Michael

Quote:
Ed Avis wrote:

How does your 'is' program compare with 'sqsh'?



--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
  #7  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-27-2004 , 09:21 AM



On Fri, 27 Feb 2004 11:21:22 +0000, Pablo Sanchez wrote:

Quote:
Thomas Gagné <tgagne (AT) wide-open-west (DOT) com> wrote in
news:403EC32F.7030601 (AT) wide-open-west (DOT) com:

Ah! I also notice sqsh was rewritten with ctlib,

How about you take over sqsh and put in the features of 'is'?

I like sqsh's use of GNU readline.
and redirection.

Those are the two things I use most.

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler (AT) peppler (DOT) org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html



Reply With Quote
  #8  
Old   
Pablo Sanchez
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-27-2004 , 10:29 AM



Michael Peppler <mpeppler (AT) peppler (DOT) org> wrote in
newsan.2004.02.27.15.21.47.770373 (AT) peppler (DOT) org:

Quote:
and redirection.

Those are the two things I use most.
Oh yes, how could I have forgotten ... I also thought of taking the
s/w and making it work for Oracle but never seem to have the time.
--
Pablo Sanchez - Blueoak Database Engineering, Inc
http://www.blueoakdb.com


Reply With Quote
  #9  
Old   
Thomas Gagné
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-27-2004 , 10:35 AM



is does the redirection as well with syntax similar to sqsh. I like
where sqsh puts the redirection--after the "go". I didn't notice if
sqsh supports input redirection--allowing SQL to be read from multiple
places. It probably does.

Michael Peppler wrote:

Quote:
snip



I like sqsh's use of GNU readline.



and redirection.

Those are the two things I use most.


--
..tom
remove email address' dashes for replies
opensource middleware at <http://isectd.sourceforge.net>
http://gagne.homedns.org




Reply With Quote
  #10  
Old   
Thomas Gagné
 
Posts: n/a

Default Re: Neat fix to isql replacement tool "is" - 02-27-2004 , 10:36 AM



I wonder how difficult that would be. Of course it would be easier
using ODBC, but setting up ODBC on Linux seems a hassle. I've started
it a couple times but never got all the right components.

Pablo Sanchez wrote:

Quote:
snip




Oh yes, how could I have forgotten ... I also thought of taking the
s/w and making it work for Oracle but never seem to have the time.


--
..tom
remove email address' dashes for replies
opensource middleware at <http://isectd.sourceforge.net>
http://gagne.homedns.org




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.