blob: 0c490ea587b3462aa7c577c897cb9618d978fe8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import subprocess
from django.db.backends.base.client import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name = 'sqlite3'
def runshell(self):
args = [self.executable_name,
self.connection.settings_dict['NAME']]
subprocess.check_call(args)
|