4236689d27
Before this fix, the use of PG template patterns containing ":" or the use of "?" in comments in the SQL will result in an error being raised because `DB.param_encoder.encode` calls ActiveRecord's `sanitize_sql_array` which is meant for SQL fragments and not an entire SQL string. Instead we change data-explorer to use `MiniSql::InlineParamEncoder` instead which takes into account of template patterns and does not trip on `?` which is a special param encoding character used by ActiveRecord. |
||
---|---|---|
.github/workflows | ||
app | ||
assets | ||
config | ||
db/migrate | ||
lib | ||
spec | ||
test/javascripts | ||
.discourse-compatibility | ||
.eslintrc | ||
.gitignore | ||
.prettierrc | ||
.rubocop.yml | ||
.template-lintrc.js | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
README.md | ||
package.json | ||
plugin.rb | ||
translator.yml | ||
yarn.lock |
README.md
Data Explorer Plugin
This plugin allows admins to run SQL queries against the live Discourse database, including parameterized queries and formatting for several common column types.
For more information, please see: https://meta.discourse.org/t/data-explorer-plugin/32566