aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dbshell/client/sqlite3.rb
blob: 09b44f9f986852b540ef23cab594ec00f4bfbaae (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