Created
June 19, 2010 23:00
-
-
Save MichaelXavier/445383 to your computer and use it in GitHub Desktop.
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 'dbi' | |
@dbh = DBI.connect("DBI:SQLite3:files.db") | |
@dbh.do("CREATE TABLE IF NOT EXISTS files (filename VARCHAR PRIMARY KEY, x INTEGER, y INTEGER, mtime INTEGER)") | |
@dbh.do("CREATE TABLE IF NOT EXISTS dir (id INTEGER PRIMARY KEY AUTOINCREMENT, mtime INTEGER)") | |
@dbh.disconnect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment