Re: glorp, UDBC and Sqlite3

I'm trying to be more familiar with Glorp, using sqlite. For this, I have started to run through the example given in

<a href="https://github.com/SquareBracketAssociates/PharoInProgress/blob/master/Glorp/Glorp.pillar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSquareBracketAssociates%2FPharoInProgress%2Fblob%2Fmaster%2FGlorp%2FGlorp.pillar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0XFStOLnkQVBkDESN-sEqnBI8rA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSquareBracketAssociates%2FPharoInProgress%2Fblob%2Fmaster%2FGlorp%2FGlorp.pillar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0XFStOLnkQVBkDESN-sEqnBI8rA&#39;;return true;">https://github.com/SquareBracketAssociates/PharoInProgress/blob/master/Glorp/Glorp.pillar. I'm aware this is a work in progress, but the issue is not related to the code given in this document.

I have created the various classes mentionned at the beginning, and I'm stuck where I need to create the table in the database.

I'm trying to be more familiar with Glorp, using sqlite. For this, I have started to run through the example given in

<a href="https://github.com/SquareBracketAssociates/PharoInProgress/blob/master/Glorp/Glorp.pillar" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSquareBracketAssociates%2FPharoInProgress%2Fblob%2Fmaster%2FGlorp%2FGlorp.pillar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0XFStOLnkQVBkDESN-sEqnBI8rA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSquareBracketAssociates%2FPharoInProgress%2Fblob%2Fmaster%2FGlorp%2FGlorp.pillar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0XFStOLnkQVBkDESN-sEqnBI8rA&#39;;return true;">https://github.com/SquareBracketAssociates/PharoInProgress/blob/master/Glorp/Glorp.pillar. I'm aware this is a work in progress, but the issue is not related to the code given in this document.

I have created the various classes mentionned at the beginning, and I'm stuck where I need to create the table in the database.

Re: glorp, UDBC and Sqlite3

Thanks Alistair for your quick answers.

I can see the trick here. In the DescriptorSystem class >> sessionForLogin: method, it use (DatabaseAccessor forLogin: aGlorpLogin), instead of (PharoDatabaseAccessor forLogin: login).I can see the difference when I inspect the session.

When created with sessionForLogin, its databaseDriver is nil.When created step by step as described in your post (and Pierce code sample), databaseDriver is set correctly to GlorpSqlite3Driver.

I guess sessionForLogin: shouldn't be used directly when dealing with Sqlite database.

I'm trying to be more familiar with Glorp, using sqlite. For this, I have started to run through the example given in

<a href="https://github.com/SquareBracketAssociates/PharoInProgress/blob/master/Glorp/Glorp.pillar" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSquareBracketAssociates%2FPharoInProgress%2Fblob%2Fmaster%2FGlorp%2FGlorp.pillar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0XFStOLnkQVBkDESN-sEqnBI8rA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSquareBracketAssociates%2FPharoInProgress%2Fblob%2Fmaster%2FGlorp%2FGlorp.pillar\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF0XFStOLnkQVBkDESN-sEqnBI8rA&#39;;return true;">https://github.com/SquareBracketAssociates/PharoInProgress/blob/master/Glorp/Glorp.pillar. I'm aware this is a work in progress, but the issue is not related to the code given in this document.

I have created the various classes mentionned at the beginning, and I'm stuck where I need to create the table in the database.