discourse/lib/tasks
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
..
add_topic_to_quotes.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin.rake fix admin rake task 2018-04-07 16:57:17 +05:30
api.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
assets.rake DEV: Rails 5.2 upgrade and global gem upgrade 2018-06-07 14:21:33 +10:00
auto_annotate_models.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
autospec.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
avatars.rake rescue error when cleaning avatars 2018-02-23 18:15:55 +05:30
backfill.thor Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
build.rake Extend config/version.rb with more informations (#5061) 2017-08-28 12:24:56 -04:00
build_test_topic.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
categories.rake minor optimizations to categories:move_topics rake task 2018-05-08 15:14:19 +05:30
cdn.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
db.rake DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
destroy.rake Correct spelling errors 2018-04-26 09:46:32 -07:00
docker.rake fix prettier 2018-06-18 20:10:48 +02:00
emails.rake Make linter happy 2018-05-13 15:20:39 +02:00
emoji.rake FEATURE: adds emoji search aliases 2018-05-01 15:43:49 +02:00
export.rake variable name typo 2018-05-28 19:21:06 +05:30
highlight.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
i18n_stats.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
images.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
import.rake DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
integration.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
plugin.rake Remove invalid `hosted-site` plugin. 2018-06-07 08:49:19 +08:00
populate.thor Fix user is nil in populate posts. 2017-07-15 15:39:21 +02:00
posts.rake DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
qunit.rake Retry on read timeouts while warming up for qunit tests 2018-05-15 21:26:59 +02:00
redis.rake Add rake task to clean up orphane Redis keys when a multisite has been removed. 2016-12-05 11:39:08 +08:00
release_note.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rspec.rake protect against crash in prd 2013-05-21 10:08:33 +10:00
s3.rake Correct rule installation in AWS 2017-10-09 10:26:58 +11:00
scheduler.rake add a debugging task for running all schedules 2017-08-25 12:19:34 -04:00
search.rake FEATURE: search within title using in:title 2018-02-20 14:41:21 +11:00
site_settings.rake Add tests for Site Settings import/export 2018-03-23 14:55:17 -06:00
smoke_test.rake Revert "Smoke test should wait up to 5 minutes before it fails" 2018-06-11 08:47:57 +08:00
topics.rake FIX: use different method name for topic rake task 2017-09-29 22:47:03 +05:30
typepad.thor Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
uploads.rake DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
user_actions.rake Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
users.rake Update username only after successful user anonymization 2018-06-08 15:50:07 +02:00