unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Galen Boyer <galenboyer@hotpop.com>
Subject: Is is a major or minor mode?
Date: 30 Oct 2002 20:19:12 -0600	[thread overview]
Message-ID: <un0ovb2kv.fsf@hotpop.com> (raw)

I have been working on a package I am calling ejsql.el (Emacs JDBC SQL).
The idea is to use the beanshell (the way that the JDEE is using it) to
act as a JVM and serve up metadata objects that have specific JDBC
connections.  I have a connection pooling mechanism working and a data
caching mechanism working and this is being "eval'd" into elisp
completing-reads.  So, now, from (hopefully) any sql buffer, I can start
to build a dynamic sql generator (among a host of other enhancements
providing me years worth of weekends spent with my favorite addiction
and keeping me from my previous golf addiction).  The data I'm currently
retrieving is a table listing and a table/column mapping.  I cache these
data structures using java objects hosted within the Emacs process (*bsh*)
so the user won't take a big time data retrieval hit while they are
coding their sql. I will provide the user the mechanism to have Emacs
retrieve these structures directly from the database as well, or in
other words, to refresh the cache.

Now, my question.

I want this to be available in both SQLi and sql-mode buffers and
piggyback on its comint integration.  I was planning to write a wrapper
around the login functionality of sql.el which would then define the
specific variables that the sql-mode and sqli buffers needed to know
about to get at the *bsh* variables.  I'm just not sure if this is the
right plan to proceed with.  Should I make my own major-mode and steal
liberally from sql.el?  

-- 
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.

             reply	other threads:[~2002-10-31  2:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-31  2:19 Galen Boyer [this message]
2002-10-31 12:29 ` Is is a major or minor mode? Phillip Lord
2002-10-31 17:22   ` Kevin Rodgers
2002-11-01  3:26   ` Galen Boyer
2002-11-03 23:36     ` Tim Cross
2002-11-04  4:17       ` Galen Boyer
2002-11-04 22:51         ` Tim Cross

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=un0ovb2kv.fsf@hotpop.com \
    --to=galenboyer@hotpop.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).