discourse/db/fixtures
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
..
000_delayed_drops.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
001_categories.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
002_groups.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00
003_post_action_types.rb added quick start guide to seeds 2013-12-16 12:46:46 +11:00
004_screened_ip_addresses.rb added quick start guide to seeds 2013-12-16 12:46:46 +11:00
005_badge_types.rb FIX: fixture order 2014-07-08 07:17:44 +10:00
006_badges.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
007_web_hook_event_types.rb FEATURE: webhook for flag events 2018-04-13 07:47:58 +05:30
009_users.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00
500_lounge_category.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
501_meta_category.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
502_staff_category.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
600_themes.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00
990_settings.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00
990_topics.rb DEV: organise fixture so all drops happen at the end 2018-06-07 15:53:54 +10:00