blob: 485d5401882eafc45f8787001a8998f4e9b6b758 (
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.run(args, check=True)
|