unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@spamto.devnul.com>
Subject: Re: emacs for rapid prototyping of oracle sql scripts
Date: 08 Jun 2003 23:22:59 +1000	[thread overview]
Message-ID: <87y90cbt58.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: 1c58a7c3.0306061408.64364a5f@posting.google.com

>>>>> "Barman" == Barman Brakjoller <brakjoller@hotmail.com> writes:

 Barman> "Bhagat, Nirav" <nirav.bhagat@capitalone.com> wrote in
 Barman> message
 Barman> news:<mailman.7494.1054925315.21513.help-gnu-emacs@gnu.org>...
 >> Hi,
 >> 
 >> for windows xp, with the capability to run snippets using the
 >> oracle engine that's built in, then ftping them over to the unix
 >> box and (maybe) kicking

 Barman> I wonder what you mean by "the oracle engine that's built
 Barman> in", do you refer to sql-mode, did you think that emacs had
 Barman> some sql-parser inside or is this your dream?

 Barman> Emacs sql-mode + sql*plus client running inside emacs (using
 Barman> the sql-oracle command) + maybe ange-ftp to save your files
 Barman> at the ftp-server in the end should work.

Better, at least for me is

sql-mode
pl/sql mode (see http://www.emacswiki.org)
tramp.

I open a buffer with C-x C-f, which can be either a file on my local
system or one on our unix server where our oracle development
environment is via tramp). I then code away and at times I may mark a
region and send it to oracle via C-c C-r or send the whole buffer with
C-c C-b. I have defined abbrevs for nearly all the sql and plsql
keywords (see abbrev mode) so that I only need to hit a couple of
letters and a space and emacs fills in the rest. I've even got simple
skeletons attached to some of them so that when I type something like
"if" it puts all the bits in, prompts for the condition and then
leaves point between the "then" and "end if" or "else". To further
reduce my typing I use dynamic abbrevs so that I only need to type
long variable names etc once and have emacs fill them in next time. 

All in all, it provides a great environment - I use it daily in my job
(sql and plsql development). 

sorry, never use windows - I do all this via Linux, so I don't know
anything about emacs on XP - however, once you have it running, you
should have access to all of this as most of it is standard emacs -
only tramp and plsql need to be installed in addition to emacs itself
- emacs comes with sql-mode, abbrev and dynamic abbrevs etc.

My boss doesn't mind me doing it this way either as I keep all my code
on the unix server. so, if my desktop linux box crashes and burns
(Yeah, like thats going to happen - has never happened in the nearly
10 years I've been running linux) or if I get hit by a bus (rather
more likely) all the code is on the main development system. Something
which is not the case with the other developers who are using TOAD. 

Tim
Tim
-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

  reply	other threads:[~2003-06-08 13:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7494.1054925315.21513.help-gnu-emacs@gnu.org>
2003-06-06 22:08 ` emacs for rapid prototyping of oracle sql scripts Barman Brakjoller
2003-06-08 13:22   ` Tim X [this message]
2003-06-07 20:28 ` Galen Boyer
2003-06-06 18:47 Bhagat, Nirav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y90cbt58.fsf@tiger.rapttech.com.au \
    --to=timx@spamto.devnul.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).