diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2011-04-02 08:39:08 +0000 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-04-02 08:39:08 +0000 |
commit | 89117545557f8ccfccfa9addd086a160501104b3 (patch) | |
tree | 3fbdb0c166825262f810d4dafbf1d269ad21eedd /django/db/backends/postgresql/client.py | |
parent | f9972bcf8675d26291f09c7acbc9da2f5f1a2327 (diff) | |
download | django-89117545557f8ccfccfa9addd086a160501104b3.tar.gz |
Deprecated the psycopg-based postgresql database backend.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql/client.py')
-rw-r--r-- | django/db/backends/postgresql/client.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/django/db/backends/postgresql/client.py b/django/db/backends/postgresql/client.py deleted file mode 100644 index a5c02969ea..0000000000 --- a/django/db/backends/postgresql/client.py +++ /dev/null @@ -1,23 +0,0 @@ -import os -import sys - -from django.db.backends import BaseDatabaseClient - -class DatabaseClient(BaseDatabaseClient): - executable_name = 'psql' - - def runshell(self): - settings_dict = self.connection.settings_dict - args = [self.executable_name] - if settings_dict['USER']: - args += ["-U", settings_dict['USER']] - if settings_dict['HOST']: - args.extend(["-h", settings_dict['HOST']]) - if settings_dict['PORT']: - args.extend(["-p", str(settings_dict['PORT'])]) - args += [settings_dict['NAME']] - if os.name == 'nt': - sys.exit(os.system(" ".join(args))) - else: - os.execvp(self.executable_name, args) - |