plugin:sql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:sql [2012-01-23 09:57] – [Installation] added link also to repository 194.25.90.65 | plugin:sql [2024-02-01 18:54] (current) – 2a01:190:5:1001:af4e:b82e:cc0a:bede | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : slim.amamou@gmail.com | email : slim.amamou@gmail.com | ||
type : syntax | type : syntax | ||
- | lastupdate : 2007-05-07 | + | lastupdate : 2023-06-14 |
compatible : | compatible : | ||
depends | depends | ||
Line 13: | Line 13: | ||
tags : database search mysql sqlite | tags : database search mysql sqlite | ||
- | downloadurl: | + | downloadurl: |
- | sourcerepo: | + | sourcerepo: |
- | bugtracker: | + | bugtracker: |
---- | ---- | ||
+ | __The file // | ||
===== Installation ===== | ===== Installation ===== | ||
- | ^ Download | + | ^ Download |
- | ^ Repository | [[https:// | + | ^ Repository | [[https:// |
Use this address to install this plugin by using the plugin manager. | Use this address to install this plugin by using the plugin manager. | ||
Line 27: | Line 28: | ||
==== Requirements ==== | ==== Requirements ==== | ||
- | * [[http:// | + | * <del>[[http:// |
- | * On Debian Etch (4.0) hosts install the packages: '' | + | * php-pdo |
Line 73: | Line 74: | ||
==== Changelog ==== | ==== Changelog ==== | ||
- | {{rss>http:// | + | {{rss>https:// |
(Old) | (Old) | ||
Line 91: | Line 92: | ||
* < | * < | ||
* make it trait multiple queries as a transaction. | * make it trait multiple queries as a transaction. | ||
- | * refactor to use [[http:// | + | * <del>refactor to use [[http:// |
* < | * < | ||
+ | * Set the db name, user name and password in the plugin configuration page not the wiki page to remove this information from public view, eg in config set comma separated triplets : mydb1: | ||
===== Known Bugs ===== | ===== Known Bugs ===== | ||
Line 127: | Line 129: | ||
</ | </ | ||
- | **You have to install the [[http:// | + | <del>You have to install the [[http:// |
+ | </ | ||
+ | |||
+ | This is not an issue anymore since today --- [[user> | ||
==== Can I use it for Oracle-Queries? | ==== Can I use it for Oracle-Queries? | ||
Line 157: | Line 162: | ||
My DokuWiki platform is Windows 2003 + IIS + PHP 5.2.4. To get the connection to MS SQL Server you need these: | My DokuWiki platform is Windows 2003 + IIS + PHP 5.2.4. To get the connection to MS SQL Server you need these: | ||
- | * PHP Extensions: [[http:// | + | * PHP Extensions: [[wp>PHP_Extension_Community_Library|PECL]] and [[wp>PHP_Extension_Community_Library# |
* Im sorry I cannot describe the PECL-installation here. I installed it simultaneously with PHP. | * Im sorry I cannot describe the PECL-installation here. I installed it simultaneously with PHP. | ||
* PEAR is installed in command prompt((DOS-window)) with '' | * PEAR is installed in command prompt((DOS-window)) with '' | ||
Line 164: | Line 169: | ||
* Check installed PEAR components with: '' | * Check installed PEAR components with: '' | ||
* See here for more: [[http:// | * See here for more: [[http:// | ||
+ | * Alternatively you can use this [[https:// | ||
* Edit PHP.ini to match this: | * Edit PHP.ini to match this: | ||
< | < | ||
Line 222: | Line 228: | ||
* plugin should use this method to register its handlers with the dokuwiki' | * plugin should use this method to register its handlers with the dokuwiki' | ||
*/ | */ | ||
- | function register(&$controller) { | + | function register(Doku_Event_Handler |
$controller-> | $controller-> | ||
} | } | ||
Line 238: | Line 244: | ||
\\ You'll probably need some more logic in the code to determine if the page has any SQL syntax. | \\ You'll probably need some more logic in the code to determine if the page has any SQL syntax. | ||
- | > I found the problem in [[http:// | + | > I found the problem in [[xref>p_cached_xhtml()]]. it is trying to get cached instructions unconditionally (ignoring '' |
>> Not a bug. Instructions should be cacheable. '' | >> Not a bug. Instructions should be cacheable. '' | ||
>>> | >>> | ||
Line 257: | Line 263: | ||
When I view the source of the page (the HTML source, not the wiki source) I see every cell has a new paragraph inside of it. This causes a lot of extra whitespace that I don't want (the cells get too big and I have to scroll, lines wrap...). | When I view the source of the page (the HTML source, not the wiki source) I see every cell has a new paragraph inside of it. This causes a lot of extra whitespace that I don't want (the cells get too big and I have to scroll, lines wrap...). | ||
- | |||
plugin/sql.1327309070.txt.gz · Last modified: 2012-01-23 09:57 by 194.25.90.65