[pony-build] in-memory db stuff

C. Titus Brown ctb at msu.edu
Thu Mar 25 19:32:07 PDT 2010


On Thu, Mar 25, 2010 at 02:58:04PM -0400, Max Laite wrote:
> Just finally sat down to take a look at this stuff, the way you want it
> done, and I have a question....
> 
> http://github.com/ctb/pony-build/blob/master/pony_build/dbsqlite.py#L23
> 
> Default value for filename is already :memory: . Which I would assume is the
> name of the sqlite db.
> But you know what they say about assumptions.
> 
> I guess my question is how does this "shelf" file tie in with sqlite3 or is
> it one in the same?

the shelve file uses sqlite.

> My original thought was the "shelf" file was the DB, and sqlite3 was just
> the means of putting data in to it.....

no, vice versa.

> I see all the calls between coordinator, dbsqlite and __init__ and can
> follow the logical progression between them, but I guess I can't make the
> connections in my brain on how it all works as one.

What happens if you run the pony-build server without a command line
argument?  Does it use the :memory: database or not?  (print is your
friend.)

If not, make it so, number one!

cheers,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the pony-build mailing list