discourse/app/controllers/admin
Sam 5f64fd0a21 DEV: remove exec_sql and replace with mini_sql
Introduce new patterns for direct sql that are safe and fast.

MiniSql is not prone to memory bloat that can happen with direct PG usage.
It also has an extremely fast materializer and very a convenient API

- DB.exec(sql, *params) => runs sql returns row count
- DB.query(sql, *params) => runs sql returns usable objects (not a hash)
- DB.query_hash(sql, *params) => runs sql returns an array of hashes
- DB.query_single(sql, *params) => runs sql and returns a flat one dimensional array
- DB.build(sql) => returns a sql builder

See more at: https://github.com/discourse/mini_sql
2018-06-19 16:13:36 +10:00
..
admin_controller.rb Refactor requires login logic, reduce duplicate code 2018-02-01 15:17:59 +11:00
api_controller.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
backups_controller.rb FEATURE: support disabling emails for non-staff users 2018-06-07 18:31:08 +05:30
badges_controller.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
color_schemes_controller.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
dashboard_controller.rb UX: switch dashboard to be the new dashboard 2018-05-14 13:07:59 +10:00
dashboard_next_controller.rb UX: switch dashboard to be the new dashboard 2018-05-14 13:07:59 +10:00
diagnostics_controller.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
email_controller.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
email_templates_controller.rb FIX: restrict updates on confirm_old_email email templates 2018-05-19 12:19:59 +05:30
embeddable_hosts_controller.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
embedding_controller.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
emojis_controller.rb FIX: use hijack for emoji uploads 2017-12-18 10:31:19 +11:00
flagged_topics_controller.rb Add front end service for staff controls 2017-09-25 12:25:14 -04:00
flags_controller.rb FIX: Silencing / Suspending a user should not send a hidden message 2018-03-14 14:39:52 -04:00
groups_controller.rb FIX: Incorrect query when removing a group owner. 2018-05-07 13:57:00 +08:00
impersonate_controller.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
moderation_history_controller.rb FEATURE: Show a button to Staff for "Moderation History" on posts/topics 2017-12-05 15:20:20 -05:00
permalinks_controller.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
plugins_controller.rb Rename display_plugins -> visible_plugins. 2018-05-09 07:52:45 +08:00
reports_controller.rb FEATURE: adds a /admin/reports route to list all reports 2018-06-18 12:31:56 +02:00
screened_emails_controller.rb FEATURE: admins can clear screend emails if needed 2014-06-02 16:53:00 +10:00
screened_ip_addresses_controller.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
screened_urls_controller.rb Should have put order on the screened urls results 2013-11-04 16:31:31 -05:00
search_logs_controller.rb fix the build 2018-01-17 12:57:33 +05:30
site_settings_controller.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
site_texts_controller.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
staff_action_logs_controller.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
themes_controller.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
user_fields_controller.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
users_controller.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
versions_controller.rb Don't blow up if Redis switches to READONLY 2015-04-24 14:37:16 -04:00
watched_words_controller.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
web_hooks_controller.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00