discourse/spec
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
..
components DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
fabricators DEV: Rails 5.2 upgrade and global gem upgrade 2018-06-07 14:21:33 +10:00
fixtures REFACTOR: uploads controller specs to requests (#5907) 2018-06-04 11:13:52 +08:00
helpers FIX: allow user quotes in HTML digest emails 2018-05-13 18:23:17 +02:00
import_export FIX: topic and category exporters were only exporting users who created the first post 2018-01-16 12:51:53 -05:00
integration DEV: Take 2 Queue jobs in tests by default. 2018-05-31 16:23:23 +08:00
integrity FEATURE: allow better fidelity for auto linkify, disable most tlds based linkify 2018-02-01 13:22:38 +11:00
jobs DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
lib/backup_restore backup restorer: tidy pg_dump schema portability logic, add test 2018-03-20 10:32:39 +08:00
mailers FIX: PM participants listed inline 2018-06-11 18:14:25 -07:00
models DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
multisite DEV: improve design of site setting default provider 2018-06-07 14:33:41 +10:00
requests DEV: make tests less fragile 2018-06-14 18:31:07 +10:00
serializers remove unused variable 2018-06-12 15:00:50 +05:30
services FIX: improve context when user deletes self 2018-06-18 11:36:22 +05:30
support DEV: Assert for 200 response code to avoid changing magic helper in the future. 2018-06-07 16:11:09 +08:00
tasks suppress print output when running specs 2017-10-31 16:06:11 +05:30
views/omniauth_callbacks Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rails_helper.rb DEV: Clean up freeze time stubs after each test. 2018-06-12 11:43:41 +08:00