注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
How do I do a database query? I just want an array of the rows… Use the Database#execute method. ... 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" )
2013/07/30 リンク