Skip to main content

MySQL-based store for tiddlyweb

Project description

A plugin for TiddlyWeb subclassing tiddlywebplugins.sqlalchemy3 with mysql specifics.

The main additions to sqlalchemy3 are:

* Optionally 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 is important to set some mysql my.cnf variables if you are using
the fulltext indexing 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);

Also set 'mysql.fulltext' to True in tiddlywebconfig.py. This makes
sure the text table is MyISAM.

Note that even if fulltext is not turned on, text searches will still
work, but not as flexibly.

Thanks to Adrian Hosey <http://adrianhosey.blogspot.com/> for help over
some SQL humps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiddlywebplugins.mysql3-3.0.10.tar.gz (31.3 kB view details)

Uploaded Source

File details

Details for the file tiddlywebplugins.mysql3-3.0.10.tar.gz.

File metadata

File hashes

Hashes for tiddlywebplugins.mysql3-3.0.10.tar.gz
Algorithm Hash digest
SHA256 39c526599f9eb6e82e45a98d545c71009dc4cc1a8450fe3cd1e2eaea659147fe
MD5 38a33241971821dd9d3c95c5f7a04bf4
BLAKE2b-256 f3d51c6e20bb84899b1d0619eacdbb6070ec9ea57adf1e7bbbf576662a5836dd

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page