blob: 5b5b7326f223bd60f01f24ede9b630a3dd70ae3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import os
import sys
from django.db.backends import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name = 'sqlite3'
def runshell(self):
args = [self.executable_name,
self.connection.settings_dict['NAME']]
if os.name == 'nt':
sys.exit(os.system(" ".join(args)))
else:
os.execvp(self.executable_name, args)
|