[pony-build] in-memory db stuff

Max Laite mlaite at gmail.com
Sun Mar 28 13:36:06 PDT 2010


Alright, bare with me on the following...

So first dbsqlite.py is using the *.db arg you specify when going to run
(opens it according to code... )....

Then it passes the shelve file to IntDictWrapper and we get the
following....
IntDictWrapper object at 0x101e0f350

IntDictWrapper.....I am only going by name but is it Initializing stuff for
the sending of data in dictionaries?

So after IntDictWrapper call, dbsqlite.py shows the dbfile as catalog.sqlite

All I can tell from the catalog is it holds the 'MAKE_SHELF' Line 34 in
dbsqlite.

Then what the Coordinator is using finally for dbfile arg is IncDictWrapper
object 0x101e0f350

Can you explain any of those step in server startup a bit more?

When ever i see 0xjibberish I always figure memory address......

Max

On Thu, Mar 25, 2010 at 10:32 PM, C. Titus Brown <ctb at msu.edu> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/pony-build/attachments/20100328/0870bf0a/attachment.htm>


More information about the pony-build mailing list