Skip to main content

Map a single RDBMS table to a bag.

Project description

mappingsql is TiddlyWeb StorageInterface implementation that maps an RDBMS table as a bag, with each row representing a tiddler.

It has many limitations (on purpose):

  • It is READ ONLY

  • It only supports one bag.

  • It has no support for recipes.

  • It has no support revisions.

  • It has limited support for search.

You tell tiddlywebconfig.py what database you want to look at, what table you want to map, and what bag name you want that table to think of itself as. The column name ‘id’ is mapped to tiddler.title unless overridden by the configuration setting of ‘mappingsql.id_column’. Any column names that map to Tiddler attributes are applied. Otherwise, columns are mapped into tiddler.fields.

Search support is used primarily with MySQL and its full text indexing system. You may turn on this support with ‘mappingsql.full_text’ set to True.

This is experimental alpha software, reading and understanding the code is recommending before using. There is additional information in the module docstring.

TODO:

  • Make mapping of columns to tiddler attributes optional.

  • Cast column data to unicode with flair.

This work was created by Chris Dent <cdent@peermore.com> for Peermore Limited, working for Yellowcar Limited, under the auspices of the wiki-data project of Avox.

It is license under the BSD license. See COPYRIGHT for more information.

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.mappingsql-0.8.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file tiddlywebplugins.mappingsql-0.8.tar.gz.

File metadata

File hashes

Hashes for tiddlywebplugins.mappingsql-0.8.tar.gz
Algorithm Hash digest
SHA256 46d24b4c38fb5e1369fa0ad60f9047be3431cb4fe0b9e7028f7c9966506912d9
MD5 5181fb6c2e8b317e6cc12ca45181889b
BLAKE2b-256 291c7b5416031559b317f6cff4d36d77bf3dce4e3790d961cc5d2d9ccb07c47c

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