lib/swift/db.rb in swift-0.10.0 vs lib/swift/db.rb in swift-0.11.0
- old
+ new
@@ -1,8 +1,10 @@
+require 'swift/adapter/sql'
+
module Swift
module DB
- class Mysql < Adapter
+ class Mysql < Adapter::Sql
def initialize options = {}
super options.update(driver: 'mysql')
end
def returning?
@@ -18,11 +20,11 @@
else super
end
end
end # Mysql
- class Sqlite3 < Adapter
+ class Sqlite3 < Adapter::Sql
def initialize options = {}
super options.update(driver: 'sqlite3')
end
def returning?
@@ -52,10 +54,10 @@
else 'text'
end
end
end # Sqlite3
- class Postgres < Adapter
+ class Postgres < Adapter::Sql
def initialize options = {}
super options.update(driver: 'postgresql')
end
def returning?