Re: a transparent persistence layer for Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg78607] Re: a transparent persistence layer for Mathematica
- From: "Steve Luttrell" <steve at _removemefirst_luttrell.org.uk>
- Date: Thu, 5 Jul 2007 04:05:33 -0400 (EDT)
- References: <f6d6qf$oq2$1@smc.vnet.net>
The documentation for DynamicModule says: "Values of local variables in a DynamicModule are by default automatically saved when a notebook containing the DynamicModule is saved, so that these values in effect persist across sessions of Mathematica." What does Lynk do that DynamicModule doesn't do? Steve Luttrell West Malvern, UK "Tyler Spaeth" <lynk at pm.dv8.org> wrote in message news:f6d6qf$oq2$1 at smc.vnet.net... > Hello, > > I am a student at Excelsior College and have recently written a small, > open-source package called Lynk to provide a transparent persistence > layer for Mathematica. In short, Lynk allows you to use standard > Mathematica operators to access persistent data. I have included a > transcript of a very simple session using Lynk to help people get a > feel for Lynk. > > If you end up using Lynk, I would love to how it is being used. I > would also appreciate feedback about the design and implementation of > Lynk. > > The main Lynk website is http://www.lynklayer.org. The Lynk package > and notebook can be downloaded at > http://www.lynklayer.org/download.html. The Lynk manual can be found > at http://www.lynklayer.org/documentation.html. > > If you have any questions, please don't hesitate to contact me. > > Thank you for your time, > > Tyler Spaeth > lynklayer at pm.dv8.org > > > Transcript: > > databaseConnection = OpenSQLConnection[JDBC["hsqldb", > ToFileName[{$UserBaseDirectory, "DatabaseResources"}, > "Sample"]],"Username" -> "sa"] > SQLConnection[1, "Open", "TransactionIsolationLevel" -> "ReadCommitted"] > > lynkEnvironment[databaseConnection] > > lynkSymbol[x] > > lynkSymbol[f] > > x = 2 > 2 > > f[1] = x > 2 > > f[1] > 2 > > f[1] =. > > f[1] > f[1] > > delynkEnvironment[] > > CloseSQLConnection[databaseConnection] > > <<<Restart of the Mathematica kernel>>> > > databaseConnection = OpenSQLConnection[JDBC["hsqldb", > ToFileName[{$UserBaseDirectory, "DatabaseResources"}, > "Sample"]],"Username" -> "sa"] > SQLConnection[1, "Open", "TransactionIsolationLevel" -> "ReadCommitted"] > > x > 2 > > ValueQ[f[1]] > False > > delynkEnvironment[] > > CloseSQLConnection[databaseConnection] > >