Title / Description
Code require 'rubygems' require 'sequel' DB = Sequel.connect('postgres://user:pwd@localhost:5432/mydb') dataset = DB["SELECT tag FROM blog_posts"] dataset.map(:tag) DB.fetch("SELECT tag FROM blog_posts") do |row| p row[:tag] end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code