From 7d07f365297dea5a24160d29077fe8bd62c1b5b5 Mon Sep 17 00:00:00 2001 From: Chris Priest Date: Mon, 9 Apr 2012 23:40:35 -0400 Subject: [PATCH] added hooks for mysql/oracle support --- README.md | 4 ++-- easydump/mixins.py | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c9f449..cb16a71 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,6 @@ overwrite data!! This will go through your bucket and remove all dumps except for ones performed on at 9PM on a monday. This command is to keep your S3 bucket from getting huge. In future versions, this command will be customizable. -Notes ------ +Notes: +------ Postgres/Postgis currently only supported. Mysql/Oracle/SQLite support coming soon. \ No newline at end of file diff --git a/easydump/mixins.py b/easydump/mixins.py index 7959847..9e0b7bb 100644 --- a/easydump/mixins.py +++ b/easydump/mixins.py @@ -43,6 +43,15 @@ def _get_dumper(self): if 'postgis' in engine: return dumpers.PostgresDumper + if 'postgresql' in engine: + return dumpers.PostgresDumper + + if 'oracle' in engine: + return dumpers.OracleDumper + + if 'mysql' in engine: + return dumpers.MySQLDumper + def _get_tables(self): """ return all the database tables that we are going to dump.