plugin:dbquery
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:dbquery [2021-01-19 10:58] – created andi | plugin:dbquery [2023-07-10 23:50] (current) – version upped andi | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : helper, syntax | type : helper, syntax | ||
- | lastupdate : 2021-01-19 | + | lastupdate : 2023-07-10 |
- | compatible : hogfather | + | compatible : Hogfather |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : sql, db, database | + | tags : sql, db, database, mysql, postgres, sqlite, pdo |
downloadurl: | downloadurl: | ||
Line 21: | Line 21: | ||
---- | ---- | ||
- | This plugin allows you display the results of a database query either as a table or a HTML formatted status. Unlike other, similar plugins this plugins strictly | + | [[https:// |
+ | |||
+ | This plugin allows you display the results of a database query either as a table or a HTML formatted status. Unlike other, similar plugins this plugins strictly | ||
The connection to the database is done via PDO, the plugin itself is database agnostic. | The connection to the database is done via PDO, the plugin itself is database agnostic. | ||
Line 106: | Line 108: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== Macros ==== | ||
+ | |||
+ | Additional macros can be added to the query page to influence how the query is executed or the result is displayed. Currently the following macros are supported: | ||
+ | |||
+ | * '' | ||
Line 163: | Line 172: | ||
+ | Note: the plugin will autodetect DokuWiki link syntax in the result contents and appropriately create links when showing tabular results. However there are a few caveats: | ||
+ | * The link syntax has to be the only cell content, eg. it starts and ends with '' | ||
+ | * Only '' | ||
+ | * This feature does not the full wiki parser to parse contents, so no other syntax is recognized and handled specially | ||
plugin/dbquery.1611050336.txt.gz · Last modified: 2021-01-19 10:58 by andi