mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
316 B
Python
13 lines
316 B
Python
5 years ago
|
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)
|