App Engine Python SDK version 1.7.4 (2)
[gae.git] / python / lib / django_1_4 / django / db / backends / oracle / client.py
blobccc64ebffc70123c69d696a1b0a739ec5fe1522c
1 import os
2 import sys
4 from django.db.backends import BaseDatabaseClient
6 class DatabaseClient(BaseDatabaseClient):
7 executable_name = 'sqlplus'
9 def runshell(self):
10 conn_string = self.connection._connect_string()
11 args = [self.executable_name, "-L", conn_string]
12 if os.name == 'nt':
13 sys.exit(os.system(" ".join(args)))
14 else:
15 os.execvp(self.executable_name, args)