After some work, I've modified django.db.backends.oracle.client in my 
virtual environment so that it will invoke Oracle's sqlplus within the 
excellent utility rlwrap.
In my shell, I have

* alias sqlplus='rlwrap --histsize 2000 sqlplus'

However, it is not secure for a project like Django to use 
subprocess.check_call with shell=True.

To turn this into a permanent feature, I'd need to:

   - Figure out how users should specify the path to rlwrap, or how to look 
   for the rlwrap utilityp
   - Figure out how users should specify the size of history.


This could also be integrated with a 3rd party backend, such as 
django-oraclepool and django-oracle-drcp (the latter I've contributed to).

In any case, how would developers suggest I proceed to make this a basic 
option of the Oracle backend?

Thanks,

-Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/5af25634-2093-451f-8b50-2c1dffb93cf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to