aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dbshell/database_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dbshell/database_client.rb')
-rw-r--r--lib/dbshell/database_client.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/dbshell/database_client.rb b/lib/dbshell/database_client.rb
deleted file mode 100644
index edea777..0000000
--- a/lib/dbshell/database_client.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-require 'dbshell/sqlite3_client'
-require 'dbshell/postgres_client'
-
-class DBShell::DatabaseClient
- def self.handler(connection_params)
- case connection_params['adapter']
- when 'sqlite3'
- DBShell::Sqlite3Client
- when 'postgresql'
- DBShell::PostgresClient
- else
- raise DBShell::InvalidDatabaseAdapter
- end
- end
-
- def self.runshell(connection_params)
- self
- .handler(connection_params)
- .runshell(connection_params)
- end
-end
-
-
-class DBShell::InvalidDatabaseAdapter < StandardError; end