How do I do a database query? I just want an array of the rows… Use the Database#execute method. If you don’t give it a block, it will return an array of all the rows: require 'sqlite3' db = SQLite3::Database.new( "test.db" ) rows = db.execute( "select * from test" )