plugin:sqlraw
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:sqlraw [2013-11-09 21:52] – updated lastupdate date tom_c | plugin:sqlraw [2018-06-05 23:59] (current) – [Installation] Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
Line 6: | Line 6: | ||
email : tcafferty@glocalfocal.com | email : tcafferty@glocalfocal.com | ||
type : syntax | type : syntax | ||
- | lastupdate : 2013-11-09 | + | lastupdate : 2013-11-17 |
- | compatible : Adora Belle, Weatherwax | + | compatible : Adora Belle, Weatherwax, Binky |
depends | depends | ||
conflicts | conflicts | ||
Line 29: | Line 29: | ||
I recommend creating a user account and granting database specific privilege to that account, specifying a database external from your other databases. That user account information will be specified in the plugin software and the user will not need to know the login information. | I recommend creating a user account and granting database specific privilege to that account, specifying a database external from your other databases. That user account information will be specified in the plugin software and the user will not need to know the login information. | ||
- | Install | + | Search and install |
Update the configuration data for the user account login information for the database. | Update the configuration data for the user account login information for the database. | ||
Line 41: | Line 41: | ||
===== Examples/ | ===== Examples/ | ||
- | * The following is data from a scrape of a US Employment data table. (Note that column headings have no spaces when a new line is started. Otherwise use an underscore for spaces. Eg: July2013). | + | Examples can be seen at < |
- | < | + | |
+ | |||
+ | | ||
* The following is an example using a dokuwiki page with a table | * The following is an example using a dokuwiki page with a table | ||
Line 70: | Line 72: | ||
</ | </ | ||
- | Create another dokuwiki page with the following content. This uses the tableplot | + | Create another dokuwiki page with the following content. This uses the sqlraw |
< | < | ||
- | <sqlraw id=' | + | <sqlraw id=' |
- | < | ||
- | </ | ||
</ | </ | ||
This page processes a scrape of the supplied link to my_run_log page to get the first table present following a marker. The data is put into a temporary database table. Then a query is run on the temporary table to select only date and calculate the speed in minutes per mile. The query produces an output table which is replaced by a plot of the data. | This page processes a scrape of the supplied link to my_run_log page to get the first table present following a marker. The data is put into a temporary database table. Then a query is run on the temporary table to select only date and calculate the speed in minutes per mile. The query produces an output table which is replaced by a plot of the data. | ||
Line 84: | Line 84: | ||
{{keywords> | {{keywords> | ||
</ | </ | ||
- | * Set the class as ' | + | Set the class as ' |
- | * Use the keywords plugin to pull in the sorting javascript code. | + | |
- | * Clicking on a column header will sort the table one way (ASC, DESC) and clicking again will sort the table the other direction. | + | |
+ | * The following example gets the data from an online csv file. The source option is now set to csvfile. The url link points to a downloadable csv file. | ||
+ | < | ||
+ | <sqlraw id=" | ||
+ | </ | ||
===== Syntax ===== | ===== Syntax ===== | ||
Line 104: | Line 106: | ||
| caption | | caption | ||
| tableNumber | | tableNumber | ||
- | | fixTable | + | | fixTable |
===== Configuration and Settings ===== | ===== Configuration and Settings ===== |
plugin/sqlraw.1384030336.txt.gz · Last modified: 2013-11-09 21:52 by tom_c