aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dbshell/client/sqlite3.rb
blob: 564cf57cc016078138ec9f712f2addec98b2d2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module DBShell
  module Client
    class SQLite3
      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
  end
end