diff options
| author | Teddy Wing | 2017-04-29 19:24:54 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-04-29 19:25:47 +0200 | 
| commit | 295407026c52216869a98dbed877a09edb801bc6 (patch) | |
| tree | 4d6043ea294ec21cbbb8cd91ba30ceae2192558b /lib | |
| parent | bb26c6d3a4f96a8e87cf14bb72ef283c86e8891a (diff) | |
| download | dbshell-rails-295407026c52216869a98dbed877a09edb801bc6.tar.bz2 | |
Add `DBShell::Sqlite3Client`
Much simpler `.build_command` than the Postgres version. Only building
arguments now. Want to try out executing the subprocess command.
Inspired of course by:
https://github.com/django/django/blob/66150f7cf61bc09547fa98586790df596eff6d77/django/db/backends/sqlite3/client.py
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dbshell/sqlite3_client.rb | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/lib/dbshell/sqlite3_client.rb b/lib/dbshell/sqlite3_client.rb new file mode 100644 index 0000000..7e962d7 --- /dev/null +++ b/lib/dbshell/sqlite3_client.rb @@ -0,0 +1,10 @@ +class DBShell::Sqlite3Client +  EXECUTABLE_NAME = 'sqlite3' + +  def self.build_command(db_info) +    args = [ +      EXECUTABLE_NAME, +      db_info['database'] +    ] +  end +end | 
