<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/snap_shot/adapters/sqlite.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -9,8 +9,8 @@ I needed some ruby magic around mysqldump and importing. Of course you can use i
 
 Requirements
 ======
-SnapShot only support mysql at the momement. I plan to add support for Postgres &amp; SQLite soon. Commands are execute inside a shell,
-so be sure you have mysqldump &amp; mysql in $PATH. I've not tested SnapShot on windows, so if you use windows, good luck. Let me know 
+SnapShot only supports mysql &amp; sqlite3 at the momement. I plan to add support for Postgres &amp; SQLite soon. Commands are execute inside a shell,
+so be sure you have mysqldump,mysql &amp; sqlite3 in $PATH. I've not tested SnapShot on windows, so if you use windows, good luck. Let me know 
 how it goes. SnapShot has no other outside requirements.
 
 Install
@@ -87,8 +87,8 @@ It is up to you to handle those scenarios.
 
 TODO
 =========
-1. Add Support for Postgres &amp; SQLite
+1. Add Support for Postgres
 2. Add S3 support
 
 
-Copyright (c) 2009 Adam Hawkins , released under the MIT license
+Copyright (c) 2009 Adam Hawkins, released under the MIT license</diff>
      <filename>README.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 require 'snap_shot/adapters/adapter'
 require 'snap_shot/adapters/mysql'
+require 'snap_shot/adapters/sqlite'
 
 class SnapShot  
   LOCATION = File.join(RAILS_ROOT,'db','snapshots')
@@ -33,6 +34,8 @@ class SnapShot
     case adapter?
     when 'mysql'
       snap_shot_adapter = MySQLSnapShotAdapter.new(options)
+    when 'sqlite3'
+      snap_shot_adapter = SQLiteSnapShotAdapter.new(options)
     end
     snap_shot_adapter
   end</diff>
      <filename>lib/snap_shot.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,11 +23,11 @@ class MySQLSnapShotAdapter &lt; SnapShotAdapter
   
   def restore
     reset_db_and_migrate_up_to_version
-    puts &quot;Loading Snapshot...&quot;
+    time_parts = @name.split('_')
+    time = DateTime.new(time_parts[0].to_i,time_parts[1].to_i,time_parts[2].to_i,time_parts[3].to_i,time_parts[4].to_i,time_parts[5].to_i)
+    puts &quot;Restoring From... #{time.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)}&quot;
     cmd = &quot;mysql -u #{@db['username']} --password=#{@db['password']} #{@db['database']} &lt; #{snap_shot_file_path}&quot;
     result = `#{cmd}`        
-    puts &quot;Saving schema...&quot;
-    `rake db:schema:dump`
     $?.to_i.eql? 0
   end
 end
\ No newline at end of file</diff>
      <filename>lib/snap_shot/adapters/mysql.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a11b7d71d743e4dbdd4bbad068ac6be2426606ff</id>
    </parent>
  </parents>
  <author>
    <name>Adman65</name>
    <email>Adman1965@gmail.com</email>
  </author>
  <url>http://github.com/Adman65/Snapshot/commit/5ca54cb9b184f7ec00e6f777e09079c01a447ae2</url>
  <id>5ca54cb9b184f7ec00e6f777e09079c01a447ae2</id>
  <committed-date>2009-07-06T01:20:06-07:00</committed-date>
  <authored-date>2009-07-06T01:20:06-07:00</authored-date>
  <message>Added support for SQLite3.</message>
  <tree>b45e2494ea11c75876d656074171fa95e978468f</tree>
  <committer>
    <name>Adman65</name>
    <email>Adman1965@gmail.com</email>
  </committer>
</commit>
