module
rails latest stable

Active Record Connection Adapters Quoting

Constants

COLUMN_NAME = /\n\\A\n(\n(?:\n# table_name.column_name | function(one or no argument)\n((?:\\w+\\.)?\\w+ | \\w+\\((?:|\\g<2>)\\))\n)\n(?:(?:\\s+AS)?\\s+\\w+)?\n)\n(?:\\s*,\\s*\\g<1>)*\n\\z\n/ix

COLUMN_NAME_WITH_ORDER = /\n\\A\n(\n(?:\n# table_name.column_name | function(one or no argument)\n((?:\\w+\\.)?\\w+ | \\w+\\((?:|\\g<2>)\\))\n)\n(?:\\s+ASC|\\s+DESC)?\n(?:\\s+NULLS\\s+(?:FIRST|LAST))?\n)\n(?:\\s*,\\s*\\g<1>)*\n\\z\n/ix

Files

  • activerecord/lib/active_record/connection_adapters/abstract/quoting.rb