discourse/script/import_scripts
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
..
base Use short upload URL in import scripts 2018-06-17 22:57:32 +02:00
mbox FEATURE: Use Message-ID for detecting email replies to group 2018-04-05 11:00:38 +02:00
nodebb nodebb importer (#5842) 2018-05-18 10:12:40 +02:00
phpbb3 FIX: add support for string avatar_type values in PHPBB3 importer 2018-06-07 18:14:11 -04:00
quandora Make rubocop happy again. 2018-06-07 13:28:18 +08:00
socialcast Make rubocop happy again. 2018-06-07 13:28:18 +08:00
support Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
askbot.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
base.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
bbpress.rb add support for importing attachments in bbPress importer 2018-04-24 11:08:12 -04:00
bespoke_1.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discuz_x.rb FEATURE: add category suppress from latest 2018-02-22 09:56:35 +11:00
disqus.rb fix user lookup by email in disqus import script 2017-11-16 16:26:18 +01:00
drupal_json.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
drupal_qa.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
drupal-6.rb Fix broken queries in Drupal 6 migration. 2018-03-31 17:53:40 +02:00
drupal.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
fluxbb.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
getsatisfaction.rb Add rake task for reordering posts by creation_date 2018-03-29 14:42:41 +02:00
ipboard.rb FEATURE: support disabling emails for non-staff users 2018-06-07 18:31:08 +05:30
ipboard3.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
jive_api.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
jive.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
json_generic.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
kunena.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
kunena3.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
lithium.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
mbox-experimental.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
mbox.rb FEATURE: support disabling emails for non-staff users 2018-06-07 18:31:08 +05:30
modx.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
muut.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
mybb.rb FEATURE: support disabling emails for non-staff users 2018-06-07 18:31:08 +05:30
mylittleforum.rb FEATURE: support disabling emails for non-staff users 2018-06-07 18:31:08 +05:30
nabble.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
ning.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
phorum.rb add Phorum importer 2015-11-06 16:48:34 +05:30
phpbb3.rb Fixes some minor issues with the phpBB3 importer 2015-07-27 23:02:45 +02:00
punbb.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
sfn.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
simplepress.rb FIX: SimplePress importer wasn't handling increment imports properly 2018-02-24 00:42:17 +01:00
smf1.rb extract configuration variables from SMF1 importer 2018-05-30 15:53:57 +02:00
smf2.rb smf2: deal with duplicate category names (#5435) 2017-12-27 16:56:36 +11:00
sourceforge.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
stack_overflow.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
vanilla_mysql.rb FIX: invalid SQL in vanilla_mysql import script 2018-01-19 11:53:07 -05:00
vanilla.rb Make rubocop happy again. 2018-06-07 13:28:18 +08:00
vbulletin.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
vbulletin5.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
xenforo.rb lint 2018-03-08 15:16:12 +11:00
yahoogroup.rb New yahoo groups importer 2017-11-09 11:07:57 +01:00
zendesk.rb Use correct post id in zendesk importer 2018-06-17 22:57:31 +02:00
zoho.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00