discourse/app/services
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
..
spam_rule Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
anonymous_shadow_creator.rb FIX: email_domains_whitelist prevented creation of anonymous users 2018-03-06 18:14:53 +01:00
badge_granter.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
color_scheme_revisor.rb Fix all the errors to get our tests green on Rails 5.1. 2017-09-25 13:48:58 +08:00
destroy_task.rb Add destroy rake task 2018-03-30 18:32:21 -06:00
group_action_logger.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
group_mentions_updater.rb FIX: Skip validations when updating group mentions. 2017-04-04 14:13:18 +08:00
group_message.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
handle_chunk_upload.rb FIX: Can't upload backup. 2018-04-06 10:14:17 +08:00
notification_emailer.rb rename 'private_email_time_window_seconds' to 'personal_email_time_window_seconds' 2018-02-01 13:25:29 +05:30
post_action_notifier.rb FIX: ensure PostAlerter is always run in sidekiq 2018-05-24 17:27:43 +02:00
post_alerter.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
post_owner_changer.rb FIX: PostOwnerChange should update 'topic.last_poser' 2018-05-16 19:48:04 +02:00
push_notification_pusher.rb Refactor of `PushSubscriptionPusher`. 2018-05-09 08:14:14 +08:00
random_topic_selector.rb improve erraticly failing spec 2018-05-23 08:39:15 +10:00
search_indexer.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
site_settings_task.rb Add tests for Site Settings import/export 2018-03-23 14:55:17 -06:00
spam_rules_enforcer.rb Rename "Blocked" to "Silenced" 2017-11-10 14:10:27 -05:00
staff_action_logger.rb FEATURE: Log user merge in staff logs 2018-06-11 18:43:56 +02:00
topic_status_updater.rb Add a `DiscourseEvent` for when a topic is closed 2017-09-27 14:00:53 -04:00
topic_timestamp_changer.rb FIX: `TopicTimestampChanger` should not allow timestamps in the future. 2017-05-22 16:03:49 +08:00
tracked_topics_updater.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
trust_level_granter.rb REFACTOR: Track manual locked user levels separately from groups 2017-11-27 11:23:44 -05:00
user_action_creator.rb REFACTOR: Use `Topic#private_message?` to reduce duplication. 2018-03-05 15:39:22 +08:00
user_activator.rb FEATURE: forgot_password_strict setting also prevents reporting that an email address is taken during signup 2017-10-03 15:28:30 -04:00
user_anonymizer.rb FIX: Don't delete profile views during user anonymization 2018-06-08 15:50:07 +02:00
user_authenticator.rb FIX: apply automatic group rules when using social login providers 2018-05-23 02:26:07 +03:00
user_destroyer.rb FIX: improve context when user deletes self 2018-06-18 11:36:22 +05:30
user_merger.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
user_silencer.rb Pass `silenced_by` through to DiscourseEvent 2018-03-29 16:44:18 -04:00
user_updater.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
username_changer.rb Update username only after successful user anonymization 2018-06-08 15:50:07 +02:00
username_checker_service.rb FIX: wasn't able to use the same username when taking over a staged account 2017-12-12 11:26:00 +01:00
word_watcher.rb FIX: Missing word boundaries when non-regexp 2017-11-17 14:37:31 -05:00