Created
April 12, 2011 15:46
-
-
Save kiowa/915767 to your computer and use it in GitHub Desktop.
A fake south database support file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Nice fake South database driver in case you are mixing supported/unsupported databases. | |
Usage: Update your settings.py | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.mysql', | |
'NAME': 'mydb', | |
'USER': 'mydb', | |
'PASSWORD': '', | |
}, | |
'mongodb': { | |
'ENGINE': 'django_mongokit.mongodb', | |
'NAME': 'mymongodb', | |
}, | |
} | |
SOUTH_DATABASE_ADAPTERS = { | |
'mongodb': 'fakesouth', | |
} | |
""" | |
class DatabaseOperations(object): | |
def __init__(self, *args): | |
pass | |
def connection_init(*args): | |
pass | |
def add_column(self): | |
pass | |
def alter_column(self): | |
pass | |
def clear_table(self): | |
pass | |
def commit_transaction(self): | |
pass | |
def create_index(self): | |
pass | |
def create_primary_key(self): | |
pass | |
def create_table(self): | |
pass | |
def create_unique(self): | |
pass | |
def delete_column(self): | |
pass | |
def delete_foreign_key(self): | |
pass | |
def delete_primary_key(self): | |
pass | |
def delete_table(self): | |
pass | |
def delete_unique(self): | |
pass | |
def execute(self): | |
pass | |
def execute_many(self): | |
pass | |
def rename_column(self): | |
pass | |
def rename_table(self): | |
pass | |
def rollback_transaction(self): | |
pass | |
def send_create_signal(self): | |
pass | |
def start_transaction(self): | |
pass |
You're welcome :)
…On Fri, Oct 14, 2011 at 10:17 PM, Adam Cezar Jenkins < ***@***.***>wrote:
Thanks. This saved me a lot of aggravation
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/915767
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. This saved me a lot of aggravation