discourse/app/models/concerns
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
..
anon_cache_invalidator.rb remove rails-observers 2016-12-22 16:46:53 +11:00
cached_counting.rb FIX: application request count keys not expiring in redis 2018-03-27 15:12:39 -04:00
category_hashtag.rb FIX: Use declared constant. 2016-01-19 10:58:15 +08:00
has_custom_fields.rb FEATURE: allow registration of an array custom field 2018-05-22 16:48:39 +10:00
has_search_data.rb Fix: unlinked topic search model (#5044) 2017-08-15 11:46:57 -04:00
limited_edit.rb
positionable.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
roleable.rb
searchable.rb Fix: unlinked topic search model (#5044) 2017-08-15 11:46:57 -04:00
second_factor_manager.rb Feature: add a 30 seconds grace window for 2-factor token checks 2018-05-15 16:13:21 -07:00
stats_cacheable.rb FIX: Fetch stats if it has not been cached. 2016-04-21 14:50:25 +08:00
trashable.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00