Skip to main content

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.

Metadata

Release files for tiddlywebplugins.mappingsql 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tiddlywebplugins.mappingsql 1.2
File Size Uploaded Provenance Actions
tiddlywebplugins.mappingsql-1.2.tar.gz 8.6 kB Without provenance Details for tiddlywebplugins.mappingsql-1.2.tar.gz

Release files / tiddlywebplugins.mappingsql-1.2.tar.gz

Download URL tiddlywebplugins.mappingsql-1.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
721548969f626869b147577ff068a80738434f9deb5d311d42b9139e2b13b58c
BLAKE2b-256 checksum
How to use checksums
696f01d74ed78542f5760aa0664881501e12751785019d660b531651def35aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tiddlywebplugins.mappingsql 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page