Files
django-exalted/venv/lib/python3.8/site-packages/django/db/backends/sqlite3/client.py
2020-04-11 13:03:48 +01:00

13 lines
316 B
Python

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)