aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dbshell/sqlite3_client.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-04-29 21:55:48 +0200
committerTeddy Wing2017-04-29 21:55:48 +0200
commitb700c1bef89a67a64f1040fb6bb03c0320eefe91 (patch)
treec7173b62b8a7d6f33c41544e14139c8b5f4a6a5a /lib/dbshell/sqlite3_client.rb
parentcf14e894685c695c7ecbaa2c119e2ea414afc00a (diff)
downloaddbshell-rails-b700c1bef89a67a64f1040fb6bb03c0320eefe91.tar.bz2
Rename database client files to put them in a `Client` module
Will be modifying the class names in the next commit. Here we change the file names & locations of the database client files. The format changes thusly: <adapter>_client.rb -> client/<adapter>.rb This organisation feels cleaner to me. Wasn't liking the previous structure.
Diffstat (limited to 'lib/dbshell/sqlite3_client.rb')
-rw-r--r--lib/dbshell/sqlite3_client.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/dbshell/sqlite3_client.rb b/lib/dbshell/sqlite3_client.rb
deleted file mode 100644
index adc71ef..0000000
--- a/lib/dbshell/sqlite3_client.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-class DBShell::Sqlite3Client
- EXECUTABLE_NAME = 'sqlite3'
-
- def self.runshell(db_info)
- args = self.build_command(db_info)
- exec(*args)
- end
-
- def self.build_command(db_info)
- args = [
- EXECUTABLE_NAME,
- db_info['database']
- ]
- end
-end