Permalink
Browse files

Fixes to node blogging example, and description of plug-ins added to

README.
  • Loading branch information...
1 parent 4537c59 commit 3d5d3f093910d99a3234421956b7f8df59592955 @zefhemel zefhemel committed Aug 19, 2010
Showing with 16 additions and 4 deletions.
  1. +13 −1 README.md
  2. +3 −3 test/node-blog.js
View
@@ -27,6 +27,18 @@ frameworks, other than the Google Gears [initialization
script](http://code.google.com/apis/gears/gears_init.js), in case you
want to enable Gears support.
+Plug-ins
+--------
+
+There are a few `persistence.js` plug-ins available that add functionality:
+
+* `persistence.search.js`, adds simple full-text search capabilities,
+ see `docs/search.md` for more information.
+* `persistence.migrations.js`, supports data migrations (changes to
+ the database schema), see `docs/migrations.md` for more information.
+* `persistence.sync.js`, supports database synchronization with a
+ remote server, see `docs/sync.md` for more information.
+
A Brief Intro to Async Programming
----------------------------------
@@ -516,7 +528,7 @@ License
This work is licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).
Support this work
-=================
+-----------------
You can support this project by flattering it:
View
@@ -32,10 +32,10 @@ var sys = require('sys');
var parseUrl = require('url').parse;
var persistence = require('../persistence').persistence;
-var persistenceBackend = require('../persistence.backend.mysql');
+var persistenceStore = require('../persistence.store.mysql');
// Database configuration
-persistenceBackend.configure('nodejs_mysql', 'test', 'test');
+persistenceStore.config(persistence, 'localhost', 'nodejs_mysql', 'test', 'test');
// Switch off query logging:
//persistence.db.log = false;
@@ -183,7 +183,7 @@ http.createServer(function (req, res) {
var parsed = parseUrl(req.url, true);
var fn = urlMap[parsed.pathname];
if(fn) {
- var session = persistenceBackend.getSession();
+ var session = persistenceStore.getSession();
session.transaction(function(tx) {
fn(session, tx, req, res, function() {
session.close();

0 comments on commit 3d5d3f0

Please sign in to comment.