Ruby on Rails latest stable (v7.1.3.2)
-
0 notes
Active Record Connection Adapters Quoting
Constants
COLUMN_NAME_WITH_ORDER = / \A ( (?: # table_name.column_name | function(one or no argument) ((?:\w+\.)?\w+ | \w+\((?:|\g<2>)\)) ) (?:\s+ASC|\s+DESC)? (?:\s+NULLS\s+(?:FIRST|LAST))? ) (?:\s*,\s*\g<1>)* \z /ix
COLUMN_NAME = / \A ( (?: # table_name.column_name | function(one or no argument) ((?:\w+\.)?\w+ | \w+\((?:|\g<2>)\)) ) (?:(?:\s+AS)?\s+\w+)? ) (?:\s*,\s*\g<1>)* \z /ix