sqlite send a query to a sqlite db with ruby

Solutions on MaxInterview for sqlite send a query to a sqlite db with ruby by the best coders in the world

showing results for - "sqlite send a query to a sqlite db with ruby"
Safiya
25 Jan 2020
1require 'sqlite3'
2DB = SQLite3::Database.new("db/doctors.db")
3
4rows = DB.execute('SELECT * FROM doctors')
5
similar questions