Hi Dennis,
Yes, it will take a while for all add on packages to stabilize now that 2.0 is out.
I think you need to do something like
� � � � PharoDatabaseAccessor DefaultDriver: NativePostgresDriver.
HTH,
Sven
--
On 19 Mar 2013, at 20:34, Dennis Schenk <d.schenk@students.unibe.ch> wrote:
> Hi all,
>
> I downloaded a Pharo 2.0 image and wanted to connect my local PostgreSQL database.
>
> For Pharo 1.4 I used
>
> Gofer new
> � � � squeaksource: 'MetacelloRepository';
> � � � package: 'ConfigurationOfGlorpDBX';
> � � � load.
> ConfigurationOfGlorpDBX project latestVersion load: 'GlorpPostgresV2NativeWithTests
>
> and went from there.
>
> First I tried doing the same in Pharo 2.0, but that "ended" in a endless loop.
>
> So I loaded the packages found here: http://smalltalkhub.com/#!/~DBXTalk/Glorp/
>
> I then tried to connect to my database in the following way:
>
> login := Login new
> � � database: PostgreSQLPlatform new;
> � � username: 'user';
> � � password: 'pwd';
> � � host: 'localhost';
> � � databaseName: 'db-name'.
> accessor := PharoDatabaseAccessor forLogin: login.
> accessor login.
>
> But I got an error:
>
> receiver of new is nil
>
> in:
>
> PharoDatabaseAccessor>>loginIfError: aBlock
> � � � self log: 'Login'.
> � � � self databaseDriver: self connectionClass new.
> ...
>
> Whats would be the correct way to connect and use a psql db from Pharo 2.0?
>
> Cheers,
> Dennis
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill