django1/django/db/backends/oracle/client.py

13 lines
313 B
Python
Raw Normal View History

import subprocess
from django.db.backends import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name = 'sqlplus'
def runshell(self):
conn_string = self.connection._connect_string()
args = [self.executable_name, "-L", conn_string]
subprocess.call(args)