method
column_name_matcher
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::MySQL::Quoting::ClassMethods
column_name_matcher()public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/mysql/quoting.rb, line 15
def column_name_matcher
/
\A
(
(?:
# `table_name`.`column_name` | function(one or no argument)
((?:\w+\.|`\w+`\.)?(?:\w+|`\w+`) | \w+\((?:|\g<2>)\))
)
(?:(?:\s+AS)?\s+(?:\w+|`\w+`))?
)
(?:\s*,\s*\g<1>)*
\z
/x
end