Created
September 17, 2014 19:02
-
-
Save campanalbero/1448554f77e8884af886 to your computer and use it in GitHub Desktop.
sequel で DB から読み込み
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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