github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tiddlyweb / tiddlyweb-plugins

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (2)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (4)
    • encoding
    • master ✓
    • sql2
    • sqlmods
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Plugins for TiddlyWeb — Read more

  cancel

http://tiddlyweb.peermore.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Handle the case in magicuser where the bag does not exist. 
Chris Dent (author)
Mon Feb 08 11:53:21 -0800 2010
commit  b3fa897c407a2b9b4cff7ca54f31daeafc315c65
tree    068dbc7332ed2993b58c2d8d20564fc45749d562
parent  fde62e1dde3a4584c8a53439432ff638488416f4
tiddlyweb-plugins / sqlstore
name age
history
message
..
file README Loading commit data...
file sql.py
directory test/
file tiddlywebconfig.py
sqlstore/README
A store that uses Python's SQLAlchemy package to talk to a
database. Lots of cleanup can be done.

You will need to install SQLAlchemy to use this plugin:

   easy_install -U sqlalchemy

There is a test included in this directory, but the proper way
to test this code is to run against the TiddlyWeb core test suite,
with tiddlywebconfig.py set as follows:

config = {
    # using sqlite
    'server_store': ['sql', {'db_config': 'sqlite:///test.db'}],
    # using mysql 
    #'server_store': ['sql',
    #    {'db_config': 'mysql://localhost/tw?charset=utf8'}],
}

db_config is a database uri as used in SQLAlchmey.

Upgrading:

If you were running a version of the sql store prior to version 0.2,
you will need to migrate you store from one schema to another. There
is a 'migrate' plugin which can be used to assist with this migration.

    http://github.com/tiddlyweb/tiddlyweb-plugins/tree/master/migrate

Existing Issues:

* When running against the tests, the created tables need to be dropped
  between each test file.

The Future:

It's hoped that this will become a robust and efficient storage system
for TiddlyWeb. There is a great deal of room for improvement to the
code. Contributions are welcomed.

Credits/License:

A great deal of enhancement work for the sql store was done by
Chris Dent <cdent@peermore.com> under the auspices of the wiki-data
project of Avox: http://www.avox.info/about.shtml

Copyright (c) Chris Dent 2009

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.

Neither the name of Chris Dent nor the names of contributors may be
used to endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server