lib/pupa/processor/connection.rb in pupa-0.1.11 vs lib/pupa/processor/connection.rb in pupa-0.2.0
- old
+ new
@@ -11,10 +11,10 @@
#
# @param [String] database_url the database URL
# @return a configured connection to a database system
def self.new(database_url)
case URI.parse(database_url).scheme
- when 'postgres'
+ when 'postgres', 'sqlite'
PostgreSQLAdapter.new(database_url)
when 'mongodb'
MongoDBAdapter.new(database_url)
else
raise NotImplementedError