Skip to content

Instantly share code, notes, and snippets.

@campanalbero
Created September 17, 2014 19:02
Show Gist options
  • Save campanalbero/1448554f77e8884af886 to your computer and use it in GitHub Desktop.
Save campanalbero/1448554f77e8884af886 to your computer and use it in GitHub Desktop.
sequel で DB から読み込み
require 'rubygems'
require 'sequel'
require 'pp'
DB = Sequel.sqlite('photo.db')
items = DB["select * from photos where datetime(date_time_original) > datetime('2014-01-01 00:00:00')"].all
pp items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment