lib/sequel/dataset/features.rb in sequel-4.0.0 vs lib/sequel/dataset/features.rb in sequel-4.1.0
- old
+ new
@@ -115,9 +115,14 @@
# Whether the dataset supports pattern matching by regular expressions.
def supports_regexp?
false
end
+ # Whether the dataset supports REPLACE syntax, false by default.
+ def supports_replace?
+ false
+ end
+
# Whether the RETURNING clause is supported for the given type of query.
# +type+ can be :insert, :update, or :delete.
def supports_returning?(type)
send(:"#{type}_clause_methods").include?(:"#{type}_returning_sql")
end