MySQL-based store for tiddlyweb
Project description
A plugin for TiddlyWeb subclassing tiddlywebplugins.sqlalchemy3 with mysql specifics.
The main additions to sqlalchemy3 are:
* Provide a reasonable search interface using mysql's fulltext.
* Provide field based searches of tiddler attributes and fields.
* Support finding tiddlers that have geo.lat and geo.long fields
near a location.
* Provide an index_query method to allow the plugin to be used as
an 'indexer' for filters and determine_bag_for_tiddler.
NOTES
It's import to set some mysql my.cnf variables otherwise searches
will likely fail.
[mysqld]
ft_min_word_len = 3
ft_stopword_file = ''
You will need to create a database. I use one called 'tiddlyweb', and
add the following to tiddlywebconfig.py:
'server_store': ['tiddlywebplugins.mysql', {
'db_config': 'mysql:///tiddlyweb?charset=utf8&use_unicode=0'}],
'indexer': 'tiddlywebplugins.mysql',
If you want to use the fulltext indexing capability you will need to
create the fulltext index:
CREATE FULLTEXT INDEX tiddlytext ON text(text);
Thanks to Adrian Hosey <http://adrianhosey.blogspot.com/> for help over
some SQL humps.
The main additions to sqlalchemy3 are:
* Provide a reasonable search interface using mysql's fulltext.
* Provide field based searches of tiddler attributes and fields.
* Support finding tiddlers that have geo.lat and geo.long fields
near a location.
* Provide an index_query method to allow the plugin to be used as
an 'indexer' for filters and determine_bag_for_tiddler.
NOTES
It's import to set some mysql my.cnf variables otherwise searches
will likely fail.
[mysqld]
ft_min_word_len = 3
ft_stopword_file = ''
You will need to create a database. I use one called 'tiddlyweb', and
add the following to tiddlywebconfig.py:
'server_store': ['tiddlywebplugins.mysql', {
'db_config': 'mysql:///tiddlyweb?charset=utf8&use_unicode=0'}],
'indexer': 'tiddlywebplugins.mysql',
If you want to use the fulltext indexing capability you will need to
create the fulltext index:
CREATE FULLTEXT INDEX tiddlytext ON text(text);
Thanks to Adrian Hosey <http://adrianhosey.blogspot.com/> for help over
some SQL humps.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for tiddlywebplugins.mysql3-3.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcca24769552742c6572c80e3f3af02849a62c2ec08cb2a8815856149b58f299 |
|
MD5 | bddc8b0e7148752c231d11d10aedbca0 |
|
BLAKE2b-256 | 57ec84b636ce931390d084585596f3a2fb7ed4c1c67518bfaa59c2c500aad7c9 |