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.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/dbshell/database_client.rb b/lib/dbshell/database_client.rb
index 8d55095..edea777 100644
--- a/lib/dbshell/database_client.rb
+++ b/lib/dbshell/database_client.rb
@@ -1,3 +1,6 @@
+require 'dbshell/sqlite3_client'
+require 'dbshell/postgres_client'
+
class DBShell::DatabaseClient
def self.handler(connection_params)
case connection_params['adapter']
@@ -9,6 +12,12 @@ class DBShell::DatabaseClient
raise DBShell::InvalidDatabaseAdapter
end
end
+
+ def self.runshell(connection_params)
+ self
+ .handler(connection_params)
+ .runshell(connection_params)
+ end
end