xref: /plugin/sqlite/README (revision 31078b3c83952a39a212a7f1e2f75c8f373b01ab)
17bb92a7bSKlap-inSqlite Plugin for DokuWiki
28452ec47SKlap-in
38452ec47SKlap-inA helper plugin to easily access a SQLite database.
48452ec47SKlap-in
58452ec47SKlap-inThe plugin detects whether PHPs PDO extension is available otherwise it
67bb92a7bSKlap-inwill look for the PHP sqlite extension.
78452ec47SKlap-in
8*31078b3cSAndreas GohrPDO supports sqlite3 only, and this plugin will look for db files with extension *.sqlite3
9*31078b3cSAndreas GohrThe sqlite extension supports sqlite2 only, here this plugin will look for  *.sqlite files.
10*31078b3cSAndreas Gohr
11*31078b3cSAndreas GohrIf both drivers are available, the admin allows to convert old sqlite2 format databases to
12*31078b3cSAndreas Gohrthe new format. This should be done when upgrading from an older version. Manual upgrades
13*31078b3cSAndreas Gohrcan be done through commandline tools. Database files can be found in the data/meta directory.
14*31078b3cSAndreas Gohr
1550832eecSKlap-in    sqlite databasename.sqlite .dump | sqlite3 databasename.sqlite3
16*31078b3cSAndreas Gohr
1750832eecSKlap-inMore about this upgrade on http://www.sqlite.org/version3.html
1850832eecSKlap-in
198452ec47SKlap-inAll documentation for this plugin can be found at
208452ec47SKlap-inhttp://www.dokuwiki.org/plugin:sqlite
218452ec47SKlap-in
228452ec47SKlap-inIf you install this plugin manually, make sure it is installed in
238452ec47SKlap-inlib/plugins/sqlite/ - if the folder is called different it
248452ec47SKlap-inwill not work!
258452ec47SKlap-in
268452ec47SKlap-inPlease refer to http://www.dokuwiki.org/plugins for additional info
278452ec47SKlap-inon how to install plugins in DokuWiki.
288452ec47SKlap-in
298452ec47SKlap-in----
30*31078b3cSAndreas Gohr
31*31078b3cSAndreas GohrCopyright (C) Andreas Gohr <andi@splitbrain.org>,
32*31078b3cSAndreas Gohr              Gerrit Uitslang <klapinklapin@gmail.com>
33*31078b3cSAndreas Gohr
34*31078b3cSAndreas GohrThis program is free software; you can redistribute it and/or modify
35*31078b3cSAndreas Gohrit under the terms of the GNU General Public License as published by
36*31078b3cSAndreas Gohrthe Free Software Foundation; version 2 of the License
37*31078b3cSAndreas Gohr
38*31078b3cSAndreas GohrThis program is distributed in the hope that it will be useful,
39*31078b3cSAndreas Gohrbut WITHOUT ANY WARRANTY; without even the implied warranty of
40*31078b3cSAndreas GohrMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41*31078b3cSAndreas GohrGNU General Public License for more details.
42*31078b3cSAndreas Gohr
43*31078b3cSAndreas GohrSee the COPYING file in your DokuWiki folder for details